mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Merge branch 'develop' into develop
This commit is contained in:
commit
d2767e3662
@ -6,7 +6,7 @@ ideas and suggestions, and contribute to the code.
|
||||
|
||||
There are a few preferences regarding code contributions:
|
||||
|
||||
- The code of math.js follows the JavaScript Standard Style as described on http://standardjs.com/.
|
||||
- The code of math.js follows the JavaScript Standard Style as described on https://standardjs.com/.
|
||||
- Make sure you properly unit test your changes.
|
||||
- Before creating a pull request, run the unit tests to make sure they all pass.
|
||||
- Only commit changes done in the source files under `src`, not to the generated builds
|
||||
@ -15,9 +15,9 @@ There are a few preferences regarding code contributions:
|
||||
|
||||
What can I do?
|
||||
|
||||
- Search through the [issues](https://github.com/josdejong/mathjs/issues) looking
|
||||
for something that looks interesting to you to pick up. Some issues are marked
|
||||
["help wanted"](https://github.com/josdejong/mathjs/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22),
|
||||
- Search through the [issues](https://github.com/josdejong/mathjs/issues) looking
|
||||
for something that looks interesting to you to pick up. Some issues are marked
|
||||
["help wanted"](https://github.com/josdejong/mathjs/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22),
|
||||
these are typically issues which should be relatively easy to pick up.
|
||||
|
||||
Thanks!
|
||||
|
||||
@ -1,5 +1,12 @@
|
||||
# History
|
||||
|
||||
# Not yet published, version 5.6.0
|
||||
|
||||
- Upgrade decimal.js to v10.1.0 (#1421).
|
||||
- Fixed #1418: missing whitespace when stringifying an expression
|
||||
containing "not".
|
||||
|
||||
|
||||
# 2019-02-20, version 5.5.0
|
||||
|
||||
- Fixed #1401: methods `map` and `forEach` of `SparseMatrix` not working
|
||||
|
||||
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
|
||||
2
NOTICE
2
NOTICE
@ -7,7 +7,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
22
README.md
22
README.md
@ -1,6 +1,6 @@
|
||||

|
||||
|
||||
[http://mathjs.org](http://mathjs.org)
|
||||
[https://mathjs.org](https://mathjs.org)
|
||||
|
||||
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices. Powerful and easy to use.
|
||||
|
||||
@ -8,7 +8,7 @@ Math.js is an extensive math library for JavaScript and Node.js. It features a f
|
||||
[](https://www.npmjs.com/package/mathjs)
|
||||
[](https://travis-ci.org/josdejong/mathjs)
|
||||
[](https://greenkeeper.io/)
|
||||
[](https://github.com/josdejong/mathjs/graphs/commit-activity)
|
||||
[](https://github.com/josdejong/mathjs/graphs/commit-activity)
|
||||
[](https://github.com/josdejong/mathjs/blob/master/LICENSE)
|
||||
[](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs?ref=badge_shield)
|
||||
[](https://slack.bri.im)
|
||||
@ -37,13 +37,13 @@ Install math.js using [npm](https://www.npmjs.com/package/mathjs):
|
||||
|
||||
Or download mathjs via one of the CDN's listed on the downloads page:
|
||||
|
||||
[http://mathjs.org/download.html](http://mathjs.org/download.html#download)
|
||||
[https://mathjs.org/download.html](https://mathjs.org/download.html#download)
|
||||
|
||||
Math.js can be used similar to JavaScript's built-in Math library. Besides that,
|
||||
math.js can evaluate
|
||||
[expressions](http://mathjs.org/docs/expressions/index.html)
|
||||
[expressions](https://mathjs.org/docs/expressions/index.html)
|
||||
and supports
|
||||
[chained operations](http://mathjs.org/docs/core/chaining.html).
|
||||
[chained operations](https://mathjs.org/docs/core/chaining.html).
|
||||
|
||||
```js
|
||||
// load math.js
|
||||
@ -71,7 +71,7 @@ math.chain(3)
|
||||
.done() // 14
|
||||
```
|
||||
|
||||
See the [Getting Started](http://mathjs.org/docs/getting_started.html) for a more detailed tutorial.
|
||||
See the [Getting Started](https://mathjs.org/docs/getting_started.html) for a more detailed tutorial.
|
||||
|
||||
|
||||
## Browser support
|
||||
@ -84,10 +84,10 @@ when using the [es5-shim](https://github.com/kriskowal/es5-shim).
|
||||
|
||||
## Documentation
|
||||
|
||||
- [Getting Started](http://mathjs.org/docs/getting_started.html)
|
||||
- [Examples](http://mathjs.org/examples/index.html)
|
||||
- [Overview](http://mathjs.org/docs/index.html)
|
||||
- [History](http://mathjs.org/history.html)
|
||||
- [Getting Started](https://mathjs.org/docs/getting_started.html)
|
||||
- [Examples](https://mathjs.org/examples/index.html)
|
||||
- [Overview](https://mathjs.org/docs/index.html)
|
||||
- [History](https://mathjs.org/history.html)
|
||||
|
||||
|
||||
## Build
|
||||
@ -154,7 +154,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
* use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
@ -323,7 +323,7 @@ function outputVersion () {
|
||||
*/
|
||||
function outputHelp () {
|
||||
console.log('math.js')
|
||||
console.log('http://mathjs.org')
|
||||
console.log('https://mathjs.org')
|
||||
console.log()
|
||||
console.log('Math.js is an extensive math library for JavaScript and Node.js. It features ')
|
||||
console.log('real and complex numbers, units, matrices, a large set of mathematical')
|
||||
|
||||
@ -2,12 +2,12 @@
|
||||
"name": "components/mathjs",
|
||||
"description": "Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.",
|
||||
"type": "component",
|
||||
"homepage": "http://mathjs.org",
|
||||
"homepage": "https://mathjs.org",
|
||||
"license": "Apache-2.0",
|
||||
"support": {
|
||||
"issues": "https://github.com/josdejong/mathjs/issues",
|
||||
"source": "https://github.com/josdejong/mathjs/",
|
||||
"docs": "http://mathjs.org/docs"
|
||||
"docs": "https://mathjs.org/docs"
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@ -56,7 +56,7 @@ parser.eval('hello("user")') // 'hello, user!'
|
||||
|
||||
External libraries like
|
||||
[numbers.js](https://github.com/sjkaliski/numbers.js) and
|
||||
[numeric.js](http://numericjs.com/) can be imported as follows.
|
||||
[numeric.js](https://github.com/sloisel/numeric) can be imported as follows.
|
||||
The libraries must be installed using npm:
|
||||
|
||||
$ npm install numbers
|
||||
|
||||
@ -72,7 +72,7 @@ math.cos(c) // Number 0.7071067811865476
|
||||
// Kinetic energy of average sedan on highway
|
||||
const d = math.unit('80 mi/h') // Unit 80 mi/h
|
||||
const e = math.unit('2 tonne') // Unit 2 tonne
|
||||
const f = math.multiply(0.5, math.multipy(math.pow(d, 2), e))
|
||||
const f = math.multiply(0.5, math.multipy(math.pow(d, 2), e))
|
||||
// 1.2790064742399996 MJ
|
||||
```
|
||||
|
||||
@ -111,7 +111,7 @@ units on the page [Syntax](../expressions/syntax.md#units).
|
||||
You can add your own units to Math.js using the `math.createUnit` function. The following example defines a new unit `furlong`, then uses the user-defined unit in a calculation:
|
||||
|
||||
```js
|
||||
math.createUnit('furlong', '220 yards')
|
||||
math.createUnit('furlong', '220 yards')
|
||||
math.eval('1 mile to furlong') // 8 furlong
|
||||
```
|
||||
|
||||
@ -119,7 +119,7 @@ If you cannot express the new unit in terms of any existing unit, then the secon
|
||||
|
||||
```js
|
||||
// A 'foo' cannot be expressed in terms of any other unit.
|
||||
math.createUnit('foo')
|
||||
math.createUnit('foo')
|
||||
math.eval('8 foo * 4 feet') // 32 foo feet
|
||||
```
|
||||
|
||||
@ -217,7 +217,7 @@ The type of the returned value is always `number`.
|
||||
### unit.toNumeric(unitName)
|
||||
Get the value of a unit when converted to the
|
||||
specified unit (a unit with optional prefix but without value).
|
||||
The type of the returned value depends on how the unit was created and
|
||||
The type of the returned value depends on how the unit was created and
|
||||
can be `number`, `Fraction`, or `BigNumber`.
|
||||
|
||||
### unit.toSI()
|
||||
@ -241,7 +241,7 @@ Length | meter (m), inch (in), foot (ft), yard (yd), mile (mi), lin
|
||||
Surface area | m2, sqin, sqft, sqyd, sqmi, sqrd, sqch, sqmil, acre, hectare
|
||||
Volume | m3, litre (l, L, lt, liter), cc, cuin, cuft, cuyd, teaspoon, tablespoon
|
||||
Liquid volume | minim (min), fluiddram (fldr), fluidounce (floz), gill (gi), cup (cp), pint (pt), quart (qt), gallon (gal), beerbarrel (bbl), oilbarrel (obl), hogshead, drop (gtt)
|
||||
Angles | rad (radian), deg (degree), grad (gradian), cycle, arcsec (arcsecond), arcmin (arcminute)
|
||||
Angles | rad (radian), deg (degree), grad (gradian), cycle, arcsec (arcsecond), arcmin (arcminute)
|
||||
Time | second (s, secs, seconds), minute (mins, minutes), hour (h, hr, hrs, hours), day (days), week (weeks), month (months), year (years), decade (decades), century (centuries), millennium (millennia)
|
||||
Frequency | hertz (Hz)
|
||||
Mass | gram(g), tonne, ton, grain (gr), dram (dr), ounce (oz), poundmass (lbm, lb, lbs), hundredweight (cwt), stick, stone
|
||||
@ -258,7 +258,7 @@ Binary | bit (b), byte (B)
|
||||
|
||||
Note: all time units are based on the Julian year, with one month being 1/12th of a Julian year, a year being one Julian year, a decade being 10 Julian years, a century being 100, and a millennium being 1000.
|
||||
|
||||
Note that all relevant units can also be written in plural form, for example `5 meters` instead of `5 meter` or `10 seconds` instead of `10 second`.
|
||||
Note that all relevant units can also be written in plural form, for example `5 meters` instead of `5 meter` or `10 seconds` instead of `10 second`.
|
||||
|
||||
Surface and volume units can alternatively be expressed in terms of length units raised to a power, for example `100 in^2` instead of `100 sqin`.
|
||||
|
||||
@ -320,7 +320,7 @@ yotta | Y | 1e24
|
||||
|
||||
### Physical Constants
|
||||
|
||||
Math.js includes the following physical constants. See [Wikipedia](http://en.wikipedia.org/wiki/Physical_constants) for more information.
|
||||
Math.js includes the following physical constants. See [Wikipedia](https://en.wikipedia.org/wiki/Physical_constants) for more information.
|
||||
|
||||
|
||||
#### Universal constants
|
||||
@ -330,7 +330,7 @@ Name | Symbol |
|
||||
speedOfLight | <i>c</i> | 299792458 | m · s<sup>-1</sup>
|
||||
gravitationConstant | <i>G</i> | 6.6738480e-11 | m<sup>3</sup> · kg<sup>-1</sup> · s<sup>-2</sup>
|
||||
planckConstant | <i>h</i> | 6.626069311e-34 | J · s
|
||||
reducedPlanckConstant | <i><span style="text-decoration:overline">h</span></i> | 1.05457172647e-34 | J · s
|
||||
reducedPlanckConstant | <i><span style="text-decoration:overline">h</span></i> | 1.05457172647e-34 | J · s
|
||||
|
||||
|
||||
#### Electromagnetic constants
|
||||
@ -350,7 +350,7 @@ nuclearMagneton | <i>μ<sub>N</sub></i> | 5
|
||||
klitzing | <i>R<sub>K</sub></i> | 25812.807443484 | Ω
|
||||
|
||||
<!-- TODO: implement josephson
|
||||
josephson | <i>K<sub>J</sub></i> | 4.8359787011e-14 | Hz · V<sup>-1</sup>
|
||||
josephson | <i>K<sub>J</sub></i> | 4.8359787011e-14 | Hz · V<sup>-1</sup>
|
||||
-->
|
||||
|
||||
|
||||
@ -392,11 +392,11 @@ secondRadiation | <i>c<sub>2</sub></i> | 1.438777013e-2 | m 
|
||||
stefanBoltzmann | <i>σ</i> | 5.67037321e-8 | W · m<sup>-2</sup> · K<sup>-4</sup>
|
||||
wienDisplacement | <i>b</i> | 2.897772126e-3 | m · K
|
||||
|
||||
<!-- TODO: implement spectralRadiance
|
||||
<!-- TODO: implement spectralRadiance
|
||||
spectralRadiance | <i>c<sub>1L</sub></i> | 1.19104286953e-16 | W · m<sup>2</sup> · sr<sup>-1</sup>
|
||||
-->
|
||||
|
||||
Note that the values of `loschmidt` and `molarVolume` are at `T = 273.15 K` and `p = 101.325 kPa`.
|
||||
Note that the values of `loschmidt` and `molarVolume` are at `T = 273.15 K` and `p = 101.325 kPa`.
|
||||
The value of `sackurTetrode` is at `T = 1 K` and `p = 101.325 kPa`.
|
||||
|
||||
|
||||
@ -415,7 +415,7 @@ atm | <i>atm</i> | 101325 | Pa
|
||||
Name | Symbol | Value | Unit
|
||||
------------------|-----------------------|--------------------|-----
|
||||
planckLength | <i>l<sub>P</sub></i> | 1.61619997e-35 | m
|
||||
planckMass | <i>m<sub>P</sub></i> | 2.1765113e-8 | kg
|
||||
planckMass | <i>m<sub>P</sub></i> | 2.1765113e-8 | kg
|
||||
planckTime | <i>t<sub>P</sub></i> | 5.3910632e-44 | s
|
||||
planckCharge | <i>q<sub>P</sub></i> | 1.87554595641e-18 | C
|
||||
planckTemperature | <i>T<sub>P</sub></i> | 1.41683385e+32 | K
|
||||
planckTemperature | <i>T<sub>P</sub></i> | 1.41683385e+32 | K
|
||||
|
||||
@ -29,7 +29,7 @@ console.log(simplified.eval({x: 4})) // 12
|
||||
|
||||
For more details on the theory of expression simplification, see:
|
||||
|
||||
- [Strategies for simplifying math expressions (Stackoverflow)](http://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)
|
||||
- [Strategies for simplifying math expressions (Stackoverflow)](https://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)
|
||||
- [Symbolic computation - Simplification (Wikipedia)](https://en.wikipedia.org/wiki/Symbolic_computation#Simplification)
|
||||
|
||||
|
||||
@ -56,7 +56,7 @@ console.log(dh.eval({x: 3})) // '7'
|
||||
|
||||
The rules used by `math.derivative` can be found on Wikipedia:
|
||||
|
||||
- [Differentiation rules (Wikipedia)](http://en.wikipedia.org/wiki/Differentiation_rules)
|
||||
- [Differentiation rules (Wikipedia)](https://en.wikipedia.org/wiki/Differentiation_rules)
|
||||
|
||||
|
||||
## Rationalize
|
||||
|
||||
@ -168,7 +168,7 @@ All nodes have the following methods:
|
||||
|
||||
- `toTex(options: object): string`
|
||||
|
||||
Get a [LaTeX](http://en.wikipedia.org/wiki/LaTeX) representation of the
|
||||
Get a [LaTeX](https://en.wikipedia.org/wiki/LaTeX) representation of the
|
||||
expression. Example:
|
||||
|
||||
```js
|
||||
|
||||
@ -134,7 +134,7 @@ code2.eval(scope) // 27
|
||||
Parsed expressions can be exported to text using `node.toString()`, and can
|
||||
be exported to LaTeX using `node.toTex()`. The LaTeX export can be used to
|
||||
pretty print an expression in the browser with a library like
|
||||
[MathJax](http://www.mathjax.org/). Example usage:
|
||||
[MathJax](https://www.mathjax.org/). Example usage:
|
||||
|
||||
```js
|
||||
// parse an expression
|
||||
|
||||
@ -5,13 +5,13 @@ This getting started describes how to install, load, and use math.js.
|
||||
|
||||
## Install
|
||||
|
||||
Math.js can be installed using various package managers like [npm](https://npmjs.org/), or by just downloading the library from the website: [http://mathjs.org/download.html](http://mathjs.org/download.html).
|
||||
Math.js can be installed using various package managers like [npm](https://npmjs.org/), or by just downloading the library from the website: [https://mathjs.org/download.html](https://mathjs.org/download.html).
|
||||
|
||||
To install via npm, run:
|
||||
|
||||
npm install mathjs
|
||||
|
||||
Other ways to install math.js are described on the [website](http://mathjs.org/download.html).
|
||||
Other ways to install math.js are described on the [website](https://mathjs.org/download.html).
|
||||
|
||||
|
||||
## Load
|
||||
@ -35,7 +35,7 @@ math.sqrt(-4) // 2i
|
||||
|
||||
### Node.js
|
||||
|
||||
Load math.js in [node.js](http://nodejs.org/):
|
||||
Load math.js in [node.js](https://nodejs.org/):
|
||||
|
||||
```js
|
||||
// load math.js
|
||||
@ -73,7 +73,7 @@ as well.
|
||||
|
||||
### Require.js
|
||||
|
||||
Load math.js in the browser using [require.js](http://requirejs.org/):
|
||||
Load math.js in the browser using [require.js](https://requirejs.org/):
|
||||
|
||||
```js
|
||||
require.config({
|
||||
@ -94,7 +94,7 @@ math.js can evaluate expressions (see [Expressions](expressions/index.md)) and
|
||||
supports chaining (see [Chaining](core/chaining.md)).
|
||||
|
||||
The example code below shows how to use math.js. More examples can be found in the
|
||||
section [Examples](http://mathjs.org/examples/index.html).
|
||||
section [Examples](https://mathjs.org/examples/index.html).
|
||||
|
||||
```js
|
||||
// functions and constants
|
||||
@ -123,4 +123,4 @@ math.chain(3)
|
||||
To learn more about math.js, check out the available documentation and examples:
|
||||
|
||||
- [Documentation](index.md)
|
||||
- [Examples](http://mathjs.org/examples/index.html)
|
||||
- [Examples](https://mathjs.org/examples/index.html)
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
# Documentation
|
||||
|
||||
[Math.js](http://mathjs.org) is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.
|
||||
[Math.js](https://mathjs.org) is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.
|
||||
|
||||
Math.js can be used in the browser, in node.js and in any JavaScript engine. Installation and download instructions are available on the [Download page](http://mathjs.org/download.html) of the website.
|
||||
Math.js can be used in the browser, in node.js and in any JavaScript engine. Installation and download instructions are available on the [Download page](https://mathjs.org/download.html) of the website.
|
||||
|
||||
## Getting Started
|
||||
|
||||
- [Getting Started](getting_started.md)
|
||||
- [Examples](http://mathjs.org/examples/index.html)
|
||||
- [Examples](//mathjs.org/examples/index.html)
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
@ -31,7 +31,7 @@ Stores values for a fractional number.
|
||||
Stores values for a arbitrary-precision floating point number.
|
||||
|
||||
- [Overview](../datatypes/bignumbers.md)
|
||||
- [Class API](http://mikemcl.github.io/decimal.js/)
|
||||
- [Class API](https://mikemcl.github.io/decimal.js/)
|
||||
|
||||
|
||||
## Matrix
|
||||
|
||||
@ -9,7 +9,7 @@ it will return a partial derivative.
|
||||
|
||||
This uses rules of differentiation which can be found here:
|
||||
|
||||
- [Differentiation rules (Wikipedia)](http://en.wikipedia.org/wiki/Differentiation_rules)
|
||||
- [Differentiation rules (Wikipedia)](https://en.wikipedia.org/wiki/Differentiation_rules)
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
@ -6,7 +6,7 @@ Compute the erf function of a value using a rational Chebyshev
|
||||
approximations for different intervals of x.
|
||||
|
||||
This is a translation of W. J. Cody's Fortran implementation from 1987
|
||||
( http://www.netlib.org/specfun/erf ). See the AMS publication
|
||||
( https://www.netlib.org/specfun/erf ). See the AMS publication
|
||||
"Rational Chebyshev Approximations for the Error Function" by W. J. Cody
|
||||
for an explanation of this process.
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
Evaluate an expression.
|
||||
|
||||
Note the evaluating arbitrary expressions may involve security risks,
|
||||
see [http://mathjs.org/docs/expressions/security.html](http://mathjs.org/docs/expressions/security.html) for more information.
|
||||
see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
@ -10,7 +10,7 @@ The modulus is defined as:
|
||||
|
||||
x - y * floor(x / y)
|
||||
|
||||
See http://en.wikipedia.org/wiki/Modulo_operation.
|
||||
See https://en.wikipedia.org/wiki/Modulo_operation.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
@ -6,7 +6,7 @@ Parse an expression. Returns a node tree, which can be evaluated by
|
||||
invoking node.eval().
|
||||
|
||||
Note the evaluating arbitrary expressions may involve security risks,
|
||||
see [http://mathjs.org/docs/expressions/security.html](http://mathjs.org/docs/expressions/security.html) for more information.
|
||||
see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
@ -33,7 +33,7 @@ and can be used as a basis to built a set of custom rules.
|
||||
|
||||
For more details on the theory, see:
|
||||
|
||||
- [Strategies for simplifying math expressions (Stackoverflow)](http://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)
|
||||
- [Strategies for simplifying math expressions (Stackoverflow)](https://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)
|
||||
- [Symbolic computation - Simplification (Wikipedia)](https://en.wikipedia.org/wiki/Symbolic_computation#Simplification)
|
||||
|
||||
An optional `options` argument can be passed as last argument of `simplify`.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
# Function xgcd
|
||||
|
||||
Calculate the extended greatest common divisor for two values.
|
||||
See http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm.
|
||||
See https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm.
|
||||
|
||||
|
||||
## Syntax
|
||||
|
||||
@ -33,11 +33,11 @@
|
||||
<h1>Currency conversion with math.js</h1>
|
||||
|
||||
<p>
|
||||
This example demonstrates how you can fetch actual currencies from <a href="http://fixer.io">fixer.io</a> and use them in math.js.
|
||||
This example demonstrates how you can fetch actual currencies from <a href="https://fixer.io">fixer.io</a> and use them in math.js.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Create a (free) account at <a href="http://fixer.io">fixer.io</a> and fill in your API access key below:
|
||||
Create a (free) account at <a href="https://fixer.io">fixer.io</a> and fill in your API access key below:
|
||||
</p>
|
||||
|
||||
<form id="fetchForm">
|
||||
@ -82,7 +82,7 @@
|
||||
|
||||
function fetchAndImportCurrencies (accessKey) {
|
||||
// fetch actual currency conversion rates
|
||||
return fetch('http://data.fixer.io/api/latest?access_key=' + accessKey)
|
||||
return fetch('https://data.fixer.io/api/latest?access_key=' + accessKey)
|
||||
.then(function (response) {
|
||||
return response.json()
|
||||
})
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<title>math.js | pretty printing with MathJax</title>
|
||||
|
||||
<script src="../../dist/math.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML.js"></script>
|
||||
|
||||
<style>
|
||||
body,
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
|
||||
<p>
|
||||
In this example, a math.js parser is running in a separate
|
||||
<a href="http://www.html5rocks.com/en/tutorials/workers/basics/">web worker</a>,
|
||||
<a href="https://www.html5rocks.com/en/tutorials/workers/basics/">web worker</a>,
|
||||
preventing the user interface from freezing during heavy calculations.
|
||||
</p>
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ try {
|
||||
}
|
||||
|
||||
/**
|
||||
* Import the math library numeric.js, http://numericjs.com/
|
||||
* Import the math library numeric.js, https://github.com/sloisel/numeric
|
||||
* The library must be installed first using npm:
|
||||
* npm install numeric
|
||||
*/
|
||||
|
||||
@ -73,7 +73,7 @@ Follow the readme in the `gh-pages` branch on how to update the website.
|
||||
|
||||
## Update the REST API
|
||||
|
||||
Update the `mathjs-rest` project (served at http://api.mathjs.org).
|
||||
Update the `mathjs-rest` project (served at https://api.mathjs.org).
|
||||
|
||||
|
||||
## Back to develop
|
||||
|
||||
576
package-lock.json
generated
576
package-lock.json
generated
@ -14,18 +14,18 @@
|
||||
}
|
||||
},
|
||||
"@babel/core": {
|
||||
"version": "7.3.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.3.3.tgz",
|
||||
"integrity": "sha512-w445QGI2qd0E0GlSnq6huRZWPMmQGCp5gd5ZWS4hagn0EiwzxD5QMFkpchyusAyVC1n27OKXzQ0/88aVU9n4xQ==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/core/-/core-7.3.4.tgz",
|
||||
"integrity": "sha512-jRsuseXBo9pN197KnDwhhaaBzyZr2oIcLHHTt2oDdQrej5Qp57dCCJafWx5ivU8/alEYDpssYqv1MUqcxwQlrA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@babel/generator": "^7.3.3",
|
||||
"@babel/generator": "^7.3.4",
|
||||
"@babel/helpers": "^7.2.0",
|
||||
"@babel/parser": "^7.3.3",
|
||||
"@babel/parser": "^7.3.4",
|
||||
"@babel/template": "^7.2.2",
|
||||
"@babel/traverse": "^7.2.2",
|
||||
"@babel/types": "^7.3.3",
|
||||
"@babel/traverse": "^7.3.4",
|
||||
"@babel/types": "^7.3.4",
|
||||
"convert-source-map": "^1.1.0",
|
||||
"debug": "^4.1.0",
|
||||
"json5": "^2.1.0",
|
||||
@ -33,6 +33,55 @@
|
||||
"resolve": "^1.3.2",
|
||||
"semver": "^5.4.1",
|
||||
"source-map": "^0.5.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/generator": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.3.4.tgz",
|
||||
"integrity": "sha512-8EXhHRFqlVVWXPezBW5keTiQi/rJMQTg/Y9uVCEZ0CAF3PKtCCaVRnp64Ii1ujhkoDhhF1fVsImoN4yJ2uz4Wg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.3.4",
|
||||
"jsesc": "^2.5.1",
|
||||
"lodash": "^4.17.11",
|
||||
"source-map": "^0.5.0",
|
||||
"trim-right": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@babel/parser": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.3.4.tgz",
|
||||
"integrity": "sha512-tXZCqWtlOOP4wgCp6RjRvLmfuhnqTLy9VHwRochJBCP2nDm27JnnuFEnXFASVyQNHk36jD1tAammsCEEqgscIQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.3.4.tgz",
|
||||
"integrity": "sha512-TvTHKp6471OYEcE/91uWmhR6PrrYywQntCHSaZ8CM8Vmp+pjAusal4nGB2WCCQd0rvI7nOMKn9GnbcvTUz3/ZQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@babel/generator": "^7.3.4",
|
||||
"@babel/helper-function-name": "^7.1.0",
|
||||
"@babel/helper-split-export-declaration": "^7.0.0",
|
||||
"@babel/parser": "^7.3.4",
|
||||
"@babel/types": "^7.3.4",
|
||||
"debug": "^4.1.0",
|
||||
"globals": "^11.1.0",
|
||||
"lodash": "^4.17.11"
|
||||
}
|
||||
},
|
||||
"@babel/types": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.3.4.tgz",
|
||||
"integrity": "sha512-WEkp8MsLftM7O/ty580wAmZzN1nDmCACc5+jFzUt+GUFNNIi3LdRlueYz0YIlmJhlZx1QYDMZL5vdWCL0fNjFQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esutils": "^2.0.2",
|
||||
"lodash": "^4.17.11",
|
||||
"to-fast-properties": "^2.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/generator": {
|
||||
@ -198,15 +247,64 @@
|
||||
}
|
||||
},
|
||||
"@babel/helper-replace-supers": {
|
||||
"version": "7.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.2.3.tgz",
|
||||
"integrity": "sha512-GyieIznGUfPXPWu0yLS6U55Mz67AZD9cUk0BfirOWlPrXlBcan9Gz+vHGz+cPfuoweZSnPzPIm67VtQM0OWZbA==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.3.4.tgz",
|
||||
"integrity": "sha512-pvObL9WVf2ADs+ePg0jrqlhHoxRXlOa+SHRHzAXIz2xkYuOHfGl+fKxPMaS4Fq+uje8JQPobnertBBvyrWnQ1A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-member-expression-to-functions": "^7.0.0",
|
||||
"@babel/helper-optimise-call-expression": "^7.0.0",
|
||||
"@babel/traverse": "^7.2.3",
|
||||
"@babel/types": "^7.0.0"
|
||||
"@babel/traverse": "^7.3.4",
|
||||
"@babel/types": "^7.3.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/generator": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.3.4.tgz",
|
||||
"integrity": "sha512-8EXhHRFqlVVWXPezBW5keTiQi/rJMQTg/Y9uVCEZ0CAF3PKtCCaVRnp64Ii1ujhkoDhhF1fVsImoN4yJ2uz4Wg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/types": "^7.3.4",
|
||||
"jsesc": "^2.5.1",
|
||||
"lodash": "^4.17.11",
|
||||
"source-map": "^0.5.0",
|
||||
"trim-right": "^1.0.1"
|
||||
}
|
||||
},
|
||||
"@babel/parser": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.3.4.tgz",
|
||||
"integrity": "sha512-tXZCqWtlOOP4wgCp6RjRvLmfuhnqTLy9VHwRochJBCP2nDm27JnnuFEnXFASVyQNHk36jD1tAammsCEEqgscIQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.3.4.tgz",
|
||||
"integrity": "sha512-TvTHKp6471OYEcE/91uWmhR6PrrYywQntCHSaZ8CM8Vmp+pjAusal4nGB2WCCQd0rvI7nOMKn9GnbcvTUz3/ZQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.0.0",
|
||||
"@babel/generator": "^7.3.4",
|
||||
"@babel/helper-function-name": "^7.1.0",
|
||||
"@babel/helper-split-export-declaration": "^7.0.0",
|
||||
"@babel/parser": "^7.3.4",
|
||||
"@babel/types": "^7.3.4",
|
||||
"debug": "^4.1.0",
|
||||
"globals": "^11.1.0",
|
||||
"lodash": "^4.17.11"
|
||||
}
|
||||
},
|
||||
"@babel/types": {
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.3.4.tgz",
|
||||
"integrity": "sha512-WEkp8MsLftM7O/ty580wAmZzN1nDmCACc5+jFzUt+GUFNNIi3LdRlueYz0YIlmJhlZx1QYDMZL5vdWCL0fNjFQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"esutils": "^2.0.2",
|
||||
"lodash": "^4.17.11",
|
||||
"to-fast-properties": "^2.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@babel/helper-simple-access": {
|
||||
@ -290,9 +388,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/plugin-proposal-object-rest-spread": {
|
||||
"version": "7.3.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.2.tgz",
|
||||
"integrity": "sha512-DjeMS+J2+lpANkYLLO+m6GjoTMygYglKmRe6cDTbFv3L9i6mmiE8fe6B8MtCSLZpVXscD5kn7s6SgtHrDoBWoA==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.3.4.tgz",
|
||||
"integrity": "sha512-j7VQmbbkA+qrzNqbKHrBsW3ddFnOeva6wzSe/zB7T+xaxGc+RCpwo44wCmRixAIGRoIpmVgvzFzNJqQcO3/9RA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-plugin-utils": "^7.0.0",
|
||||
@ -366,9 +464,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-async-to-generator": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.2.0.tgz",
|
||||
"integrity": "sha512-CEHzg4g5UraReozI9D4fblBYABs7IM6UerAVG7EJVrTLC5keh00aEuLUT+O40+mJCEzaXkYfTCUKIyeDfMOFFQ==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.3.4.tgz",
|
||||
"integrity": "sha512-Y7nCzv2fw/jEZ9f678MuKdMo99MFDJMT/PvD9LisrR5JDFcJH6vYeH6RnjVt3p5tceyGRvTtEN0VOlU+rgHZjA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-module-imports": "^7.0.0",
|
||||
@ -386,19 +484,19 @@
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-block-scoping": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.2.0.tgz",
|
||||
"integrity": "sha512-vDTgf19ZEV6mx35yiPJe4fS02mPQUUcBNwWQSZFXSzTSbsJFQvHt7DqyS3LK8oOWALFOsJ+8bbqBgkirZteD5Q==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.3.4.tgz",
|
||||
"integrity": "sha512-blRr2O8IOZLAOJklXLV4WhcEzpYafYQKSGT3+R26lWG41u/FODJuBggehtOwilVAcFu393v3OFj+HmaE6tVjhA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-plugin-utils": "^7.0.0",
|
||||
"lodash": "^4.17.10"
|
||||
"lodash": "^4.17.11"
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-classes": {
|
||||
"version": "7.3.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.3.3.tgz",
|
||||
"integrity": "sha512-n0CLbsg7KOXsMF4tSTLCApNMoXk0wOPb0DYfsOO1e7SfIb9gOyfbpKI2MZ+AXfqvlfzq2qsflJ1nEns48Caf2w==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.3.4.tgz",
|
||||
"integrity": "sha512-J9fAvCFBkXEvBimgYxCjvaVDzL6thk0j0dBvCeZmIUDBwyt+nv6HfbImsSrWsYXfDNDivyANgJlFXDUWRTZBuA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-annotate-as-pure": "^7.0.0",
|
||||
@ -406,7 +504,7 @@
|
||||
"@babel/helper-function-name": "^7.1.0",
|
||||
"@babel/helper-optimise-call-expression": "^7.0.0",
|
||||
"@babel/helper-plugin-utils": "^7.0.0",
|
||||
"@babel/helper-replace-supers": "^7.1.0",
|
||||
"@babel/helper-replace-supers": "^7.3.4",
|
||||
"@babel/helper-split-export-declaration": "^7.0.0",
|
||||
"globals": "^11.1.0"
|
||||
}
|
||||
@ -509,9 +607,9 @@
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-modules-systemjs": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.2.0.tgz",
|
||||
"integrity": "sha512-aYJwpAhoK9a+1+O625WIjvMY11wkB/ok0WClVwmeo3mCjcNRjt+/8gHWrB5i+00mUju0gWsBkQnPpdvQ7PImmQ==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.3.4.tgz",
|
||||
"integrity": "sha512-VZ4+jlGOF36S7TjKs8g4ojp4MEI+ebCQZdswWb/T9I4X84j8OtFAyjXjt/M16iIm5RIZn0UMQgg/VgIwo/87vw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-hoist-variables": "^7.0.0",
|
||||
@ -577,12 +675,12 @@
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-regenerator": {
|
||||
"version": "7.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.0.0.tgz",
|
||||
"integrity": "sha512-sj2qzsEx8KDVv1QuJc/dEfilkg3RRPvPYx/VnKLtItVQRWt1Wqf5eVCOLZm29CiGFfYYsA3VPjfizTCV0S0Dlw==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.3.4.tgz",
|
||||
"integrity": "sha512-hvJg8EReQvXT6G9H2MvNPXkv9zK36Vxa1+csAVTpE1J3j0zlHplw76uudEbJxgvqZzAq9Yh45FLD4pk5mKRFQA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"regenerator-transform": "^0.13.3"
|
||||
"regenerator-transform": "^0.13.4"
|
||||
}
|
||||
},
|
||||
"@babel/plugin-transform-shorthand-properties": {
|
||||
@ -644,16 +742,16 @@
|
||||
}
|
||||
},
|
||||
"@babel/preset-env": {
|
||||
"version": "7.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.3.1.tgz",
|
||||
"integrity": "sha512-FHKrD6Dxf30e8xgHQO0zJZpUPfVZg+Xwgz5/RdSWCbza9QLNk4Qbp40ctRoqDxml3O8RMzB1DU55SXeDG6PqHQ==",
|
||||
"version": "7.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.3.4.tgz",
|
||||
"integrity": "sha512-2mwqfYMK8weA0g0uBKOt4FE3iEodiHy9/CW0b+nWXcbL+pGzLx8ESYc+j9IIxr6LTDHWKgPm71i9smo02bw+gA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@babel/helper-module-imports": "^7.0.0",
|
||||
"@babel/helper-plugin-utils": "^7.0.0",
|
||||
"@babel/plugin-proposal-async-generator-functions": "^7.2.0",
|
||||
"@babel/plugin-proposal-json-strings": "^7.2.0",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.3.1",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
|
||||
"@babel/plugin-proposal-optional-catch-binding": "^7.2.0",
|
||||
"@babel/plugin-proposal-unicode-property-regex": "^7.2.0",
|
||||
"@babel/plugin-syntax-async-generators": "^7.2.0",
|
||||
@ -661,10 +759,10 @@
|
||||
"@babel/plugin-syntax-object-rest-spread": "^7.2.0",
|
||||
"@babel/plugin-syntax-optional-catch-binding": "^7.2.0",
|
||||
"@babel/plugin-transform-arrow-functions": "^7.2.0",
|
||||
"@babel/plugin-transform-async-to-generator": "^7.2.0",
|
||||
"@babel/plugin-transform-async-to-generator": "^7.3.4",
|
||||
"@babel/plugin-transform-block-scoped-functions": "^7.2.0",
|
||||
"@babel/plugin-transform-block-scoping": "^7.2.0",
|
||||
"@babel/plugin-transform-classes": "^7.2.0",
|
||||
"@babel/plugin-transform-block-scoping": "^7.3.4",
|
||||
"@babel/plugin-transform-classes": "^7.3.4",
|
||||
"@babel/plugin-transform-computed-properties": "^7.2.0",
|
||||
"@babel/plugin-transform-destructuring": "^7.2.0",
|
||||
"@babel/plugin-transform-dotall-regex": "^7.2.0",
|
||||
@ -675,13 +773,13 @@
|
||||
"@babel/plugin-transform-literals": "^7.2.0",
|
||||
"@babel/plugin-transform-modules-amd": "^7.2.0",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
|
||||
"@babel/plugin-transform-modules-systemjs": "^7.2.0",
|
||||
"@babel/plugin-transform-modules-systemjs": "^7.3.4",
|
||||
"@babel/plugin-transform-modules-umd": "^7.2.0",
|
||||
"@babel/plugin-transform-named-capturing-groups-regex": "^7.3.0",
|
||||
"@babel/plugin-transform-new-target": "^7.0.0",
|
||||
"@babel/plugin-transform-object-super": "^7.2.0",
|
||||
"@babel/plugin-transform-parameters": "^7.2.0",
|
||||
"@babel/plugin-transform-regenerator": "^7.0.0",
|
||||
"@babel/plugin-transform-regenerator": "^7.3.4",
|
||||
"@babel/plugin-transform-shorthand-properties": "^7.2.0",
|
||||
"@babel/plugin-transform-spread": "^7.2.0",
|
||||
"@babel/plugin-transform-sticky-regex": "^7.2.0",
|
||||
@ -749,178 +847,178 @@
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/ast": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.3.tgz",
|
||||
"integrity": "sha512-xy3m06+Iu4D32+6soz6zLnwznigXJRuFNTovBX2M4GqVqLb0dnyWLbPnpcXvUSdEN+9DVyDeaq2jyH1eIL2LZQ==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.8.5.tgz",
|
||||
"integrity": "sha512-aJMfngIZ65+t71C3y2nBBg5FFG0Okt9m0XEgWZ7Ywgn1oMAT8cNwx00Uv1cQyHtidq0Xn94R4TAywO+LCQ+ZAQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/helper-module-context": "1.8.3",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
|
||||
"@webassemblyjs/wast-parser": "1.8.3"
|
||||
"@webassemblyjs/helper-module-context": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/wast-parser": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/floating-point-hex-parser": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.3.tgz",
|
||||
"integrity": "sha512-vq1TISG4sts4f0lDwMUM0f3kpe0on+G3YyV5P0IySHFeaLKRYZ++n2fCFfG4TcCMYkqFeTUYFxm75L3ddlk2xA==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.8.5.tgz",
|
||||
"integrity": "sha512-9p+79WHru1oqBh9ewP9zW95E3XAo+90oth7S5Re3eQnECGq59ly1Ri5tsIipKGpiStHsUYmY3zMLqtk3gTcOtQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-api-error": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.3.tgz",
|
||||
"integrity": "sha512-BmWEynI4FnZbjk8CaYZXwcv9a6gIiu+rllRRouQUo73hglanXD3AGFJE7Q4JZCoVE0p5/jeX6kf5eKa3D4JxwQ==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.8.5.tgz",
|
||||
"integrity": "sha512-Za/tnzsvnqdaSPOUXHyKJ2XI7PDX64kWtURyGiJJZKVEdFOsdKUCPTNEVFZq3zJ2R0G5wc2PZ5gvdTRFgm81zA==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-buffer": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.3.tgz",
|
||||
"integrity": "sha512-iVIMhWnNHoFB94+/2l7LpswfCsXeMRnWfExKtqsZ/E2NxZyUx9nTeKK/MEMKTQNEpyfznIUX06OchBHQ+VKi/Q==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.8.5.tgz",
|
||||
"integrity": "sha512-Ri2R8nOS0U6G49Q86goFIPNgjyl6+oE1abW1pS84BuhP1Qcr5JqMwRFT3Ah3ADDDYGEgGs1iyb1DGX+kAi/c/Q==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-code-frame": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.3.tgz",
|
||||
"integrity": "sha512-K1UxoJML7GKr1QXR+BG7eXqQkvu+eEeTjlSl5wUFQ6W6vaOc5OwSxTcb3oE9x/3+w4NHhrIKD4JXXCZmLdL2cg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-code-frame/-/helper-code-frame-1.8.5.tgz",
|
||||
"integrity": "sha512-VQAadSubZIhNpH46IR3yWO4kZZjMxN1opDrzePLdVKAZ+DFjkGD/rf4v1jap744uPVU6yjL/smZbRIIJTOUnKQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/wast-printer": "1.8.3"
|
||||
"@webassemblyjs/wast-printer": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/helper-fsm": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.3.tgz",
|
||||
"integrity": "sha512-387zipfrGyO77/qm7/SDUiZBjQ5KGk4qkrVIyuoubmRNIiqn3g+6ijY8BhnlGqsCCQX5bYKOnttJobT5xoyviA==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-fsm/-/helper-fsm-1.8.5.tgz",
|
||||
"integrity": "sha512-kRuX/saORcg8se/ft6Q2UbRpZwP4y7YrWsLXPbbmtepKr22i8Z4O3V5QE9DbZK908dh5Xya4Un57SDIKwB9eow==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-module-context": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.3.tgz",
|
||||
"integrity": "sha512-lPLFdQfaRssfnGEJit5Sk785kbBPPPK4ZS6rR5W/8hlUO/5v3F+rN8XuUcMj/Ny9iZiyKhhuinWGTUuYL4VKeQ==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-module-context/-/helper-module-context-1.8.5.tgz",
|
||||
"integrity": "sha512-/O1B236mN7UNEU4t9X7Pj38i4VoU8CcMHyy3l2cV/kIF4U5KoHXDVqcDuOs1ltkac90IM4vZdHc52t1x8Yfs3g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"mamacro": "^0.0.3"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/helper-wasm-bytecode": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.3.tgz",
|
||||
"integrity": "sha512-R1nJW7bjyJLjsJQR5t3K/9LJ0QWuZezl8fGa49DZq4IVaejgvkbNlKEQxLYTC579zgT4IIIVHb5JA59uBPHXyw==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.8.5.tgz",
|
||||
"integrity": "sha512-Cu4YMYG3Ddl72CbmpjU/wbP6SACcOPVbHN1dI4VJNJVgFwaKf1ppeFJrwydOG3NDHxVGuCfPlLZNyEdIYlQ6QQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/helper-wasm-section": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.3.tgz",
|
||||
"integrity": "sha512-P6F7D61SJY73Yz+fs49Q3+OzlYAZP86OfSpaSY448KzUy65NdfzDmo2NPVte+Rw4562MxEAacvq/mnDuvRWOcg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.8.5.tgz",
|
||||
"integrity": "sha512-VV083zwR+VTrIWWtgIUpqfvVdK4ff38loRmrdDBgBT8ADXYsEZ5mPQ4Nde90N3UYatHdYoDIFb7oHzMncI02tA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/helper-buffer": "1.8.3",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
|
||||
"@webassemblyjs/wasm-gen": "1.8.3"
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-buffer": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/wasm-gen": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/ieee754": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.3.tgz",
|
||||
"integrity": "sha512-UD4HuLU99hjIvWz1pD68b52qsepWQlYCxDYVFJQfHh3BHyeAyAlBJ+QzLR1nnS5J6hAzjki3I3AoJeobNNSZlg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.8.5.tgz",
|
||||
"integrity": "sha512-aaCvQYrvKbY/n6wKHb/ylAJr27GglahUO89CcGXMItrOBqRarUMxWLJgxm9PJNuKULwN5n1csT9bYoMeZOGF3g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@xtuc/ieee754": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/leb128": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.3.tgz",
|
||||
"integrity": "sha512-XXd3s1BmkC1gpGABuCRLqCGOD6D2L+Ma2BpwpjrQEHeQATKWAQtxAyU9Z14/z8Ryx6IG+L4/NDkIGHrccEhRUg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.8.5.tgz",
|
||||
"integrity": "sha512-plYUuUwleLIziknvlP8VpTgO4kqNaH57Y3JnNa6DLpu/sGcP6hbVdfdX5aHAV716pQBKrfuU26BJK29qY37J7A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@xtuc/long": "4.2.2"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/utf8": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.3.tgz",
|
||||
"integrity": "sha512-Wv/WH9Zo5h5ZMyfCNpUrjFsLZ3X1amdfEuwdb7MLdG3cPAjRS6yc6ElULlpjLiiBTuzvmLhr3ENsuGyJ3wyCgg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.8.5.tgz",
|
||||
"integrity": "sha512-U7zgftmQriw37tfD934UNInokz6yTmn29inT2cAetAsaU9YeVCveWEwhKL1Mg4yS7q//NGdzy79nlXh3bT8Kjw==",
|
||||
"dev": true
|
||||
},
|
||||
"@webassemblyjs/wasm-edit": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.3.tgz",
|
||||
"integrity": "sha512-nB19eUx3Yhi1Vvv3yev5r+bqQixZprMtaoCs1brg9Efyl8Hto3tGaUoZ0Yb4Umn/gQCyoEGFfUxPLp1/8+Jvnw==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.8.5.tgz",
|
||||
"integrity": "sha512-A41EMy8MWw5yvqj7MQzkDjU29K7UJq1VrX2vWLzfpRHt3ISftOXqrtojn7nlPsZ9Ijhp5NwuODuycSvfAO/26Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/helper-buffer": "1.8.3",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
|
||||
"@webassemblyjs/helper-wasm-section": "1.8.3",
|
||||
"@webassemblyjs/wasm-gen": "1.8.3",
|
||||
"@webassemblyjs/wasm-opt": "1.8.3",
|
||||
"@webassemblyjs/wasm-parser": "1.8.3",
|
||||
"@webassemblyjs/wast-printer": "1.8.3"
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-buffer": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-section": "1.8.5",
|
||||
"@webassemblyjs/wasm-gen": "1.8.5",
|
||||
"@webassemblyjs/wasm-opt": "1.8.5",
|
||||
"@webassemblyjs/wasm-parser": "1.8.5",
|
||||
"@webassemblyjs/wast-printer": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wasm-gen": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.3.tgz",
|
||||
"integrity": "sha512-sDNmu2nLBJZ/huSzlJvd9IK8B1EjCsOl7VeMV9VJPmxKYgTJ47lbkSP+KAXMgZWGcArxmcrznqm7FrAPQ7vVGg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.8.5.tgz",
|
||||
"integrity": "sha512-BCZBT0LURC0CXDzj5FXSc2FPTsxwp3nWcqXQdOZE4U7h7i8FqtFK5Egia6f9raQLpEKT1VL7zr4r3+QX6zArWg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
|
||||
"@webassemblyjs/ieee754": "1.8.3",
|
||||
"@webassemblyjs/leb128": "1.8.3",
|
||||
"@webassemblyjs/utf8": "1.8.3"
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/ieee754": "1.8.5",
|
||||
"@webassemblyjs/leb128": "1.8.5",
|
||||
"@webassemblyjs/utf8": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wasm-opt": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.3.tgz",
|
||||
"integrity": "sha512-j8lmQVFR+FR4/645VNgV4R/Jz8i50eaPAj93GZyd3EIJondVshE/D9pivpSDIXyaZt+IkCodlzOoZUE4LnQbeA==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.8.5.tgz",
|
||||
"integrity": "sha512-HKo2mO/Uh9A6ojzu7cjslGaHaUU14LdLbGEKqTR7PBKwT6LdPtLLh9fPY33rmr5wcOMrsWDbbdCHq4hQUdd37Q==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/helper-buffer": "1.8.3",
|
||||
"@webassemblyjs/wasm-gen": "1.8.3",
|
||||
"@webassemblyjs/wasm-parser": "1.8.3"
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-buffer": "1.8.5",
|
||||
"@webassemblyjs/wasm-gen": "1.8.5",
|
||||
"@webassemblyjs/wasm-parser": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wasm-parser": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.3.tgz",
|
||||
"integrity": "sha512-NBI3SNNtRoy4T/KBsRZCAWUzE9lI94RH2nneLwa1KKIrt/2zzcTavWg6oY05ArCbb/PZDk3OUi63CD1RYtN65w==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.8.5.tgz",
|
||||
"integrity": "sha512-pi0SYE9T6tfcMkthwcgCpL0cM9nRYr6/6fjgDtL6q/ZqKHdMWvxitRi5JcZ7RI4SNJJYnYNaWy5UUrHQy998lw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/helper-api-error": "1.8.3",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.3",
|
||||
"@webassemblyjs/ieee754": "1.8.3",
|
||||
"@webassemblyjs/leb128": "1.8.3",
|
||||
"@webassemblyjs/utf8": "1.8.3"
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-api-error": "1.8.5",
|
||||
"@webassemblyjs/helper-wasm-bytecode": "1.8.5",
|
||||
"@webassemblyjs/ieee754": "1.8.5",
|
||||
"@webassemblyjs/leb128": "1.8.5",
|
||||
"@webassemblyjs/utf8": "1.8.5"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wast-parser": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.3.tgz",
|
||||
"integrity": "sha512-gZPst4CNcmGtKC1eYQmgCx6gwQvxk4h/nPjfPBbRoD+Raw3Hs+BS3yhrfgyRKtlYP+BJ8LcY9iFODEQofl2qbg==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-parser/-/wast-parser-1.8.5.tgz",
|
||||
"integrity": "sha512-daXC1FyKWHF1i11obK086QRlsMsY4+tIOKgBqI1lxAnkp9xe9YMcgOxm9kLe+ttjs5aWV2KKE1TWJCN57/Btsg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/floating-point-hex-parser": "1.8.3",
|
||||
"@webassemblyjs/helper-api-error": "1.8.3",
|
||||
"@webassemblyjs/helper-code-frame": "1.8.3",
|
||||
"@webassemblyjs/helper-fsm": "1.8.3",
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/floating-point-hex-parser": "1.8.5",
|
||||
"@webassemblyjs/helper-api-error": "1.8.5",
|
||||
"@webassemblyjs/helper-code-frame": "1.8.5",
|
||||
"@webassemblyjs/helper-fsm": "1.8.5",
|
||||
"@xtuc/long": "4.2.2"
|
||||
}
|
||||
},
|
||||
"@webassemblyjs/wast-printer": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.3.tgz",
|
||||
"integrity": "sha512-DTA6kpXuHK4PHu16yAD9QVuT1WZQRT7079oIFFmFSjqjLWGXS909I/7kiLTn931mcj7wGsaUNungjwNQ2lGQ3Q==",
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.8.5.tgz",
|
||||
"integrity": "sha512-w0U0pD4EhlnvRyeJzBqaVSJAo9w/ce7/WPogeXLzGkO6hzhr4GnQIZ4W4uUt5b9ooAaXPtnXlj0gzsXEOUNYMg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/wast-parser": "1.8.3",
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/wast-parser": "1.8.5",
|
||||
"@xtuc/long": "4.2.2"
|
||||
}
|
||||
},
|
||||
@ -1805,14 +1903,14 @@
|
||||
}
|
||||
},
|
||||
"browserslist": {
|
||||
"version": "4.4.1",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.4.1.tgz",
|
||||
"integrity": "sha512-pEBxEXg7JwaakBXjATYw/D1YZh4QUSCX/Mnd/wnqSRPPSi1U39iDhDoKGoBUcraKdxDlrYqJxSI5nNvD+dWP2A==",
|
||||
"version": "4.4.2",
|
||||
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.4.2.tgz",
|
||||
"integrity": "sha512-ISS/AIAiHERJ3d45Fz0AVYKkgcy+F/eJHzKEvv1j0wwKGKD9T3BrwKr/5g45L+Y4XIK5PlTqefHciRFcfE1Jxg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"caniuse-lite": "^1.0.30000929",
|
||||
"electron-to-chromium": "^1.3.103",
|
||||
"node-releases": "^1.1.3"
|
||||
"caniuse-lite": "^1.0.30000939",
|
||||
"electron-to-chromium": "^1.3.113",
|
||||
"node-releases": "^1.1.8"
|
||||
}
|
||||
},
|
||||
"browserstack": {
|
||||
@ -1999,9 +2097,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"caniuse-lite": {
|
||||
"version": "1.0.30000938",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000938.tgz",
|
||||
"integrity": "sha512-ekW8NQ3/FvokviDxhdKLZZAx7PptXNwxKgXtnR5y+PR3hckwuP3yJ1Ir+4/c97dsHNqtAyfKUGdw8P4EYzBNgw==",
|
||||
"version": "1.0.30000939",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000939.tgz",
|
||||
"integrity": "sha512-oXB23ImDJOgQpGjRv1tCtzAvJr4/OvrHi5SO2vUgB0g0xpdZZoA/BxfImiWfdwoYdUTtQrPsXsvYU/dmCSM8gg==",
|
||||
"dev": true
|
||||
},
|
||||
"chainsaw": {
|
||||
@ -2083,12 +2181,6 @@
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"circular-json": {
|
||||
"version": "0.5.9",
|
||||
"resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.5.9.tgz",
|
||||
"integrity": "sha512-4ivwqHpIFJZBuhN3g/pEcdbnGUywkBblloGbkglyloVjjR3uT6tieI89MVOfbP2tHX5sgb01FuLgAOzebNlJNQ==",
|
||||
"dev": true
|
||||
},
|
||||
"class-utils": {
|
||||
"version": "0.3.6",
|
||||
"resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz",
|
||||
@ -2242,15 +2334,6 @@
|
||||
"integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==",
|
||||
"dev": true
|
||||
},
|
||||
"combine-lists": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/combine-lists/-/combine-lists-1.0.1.tgz",
|
||||
"integrity": "sha1-RYwH4J4NkA/Ci3Cj/sLazR0st/Y=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"lodash": "^4.5.0"
|
||||
}
|
||||
},
|
||||
"commander": {
|
||||
"version": "2.17.1",
|
||||
"resolved": "https://registry.npmjs.org/commander/-/commander-2.17.1.tgz",
|
||||
@ -2526,9 +2609,9 @@
|
||||
}
|
||||
},
|
||||
"date-format": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/date-format/-/date-format-1.2.0.tgz",
|
||||
"integrity": "sha1-YV6CjiM90aubua4JUODOzPpuytg=",
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/date-format/-/date-format-2.0.0.tgz",
|
||||
"integrity": "sha512-M6UqVvZVgFYqZL1SfHsRGIQSz3ZL+qgbsV5Lp1Vj61LZVYuEwcMXYay7DRDtYs2HQQBK5hQtQ0fD9aEJ89V0LA==",
|
||||
"dev": true
|
||||
},
|
||||
"date-now": {
|
||||
@ -2565,9 +2648,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"decimal.js": {
|
||||
"version": "10.0.2",
|
||||
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.0.2.tgz",
|
||||
"integrity": "sha512-qL5tUTXAWjB5cSBfm0V2a4jO5FaDLumCfwc/0f7WaTOT3WU8pIeq2HHrd98eXHtbey4qFWlaPzfml1JWIoO9TQ=="
|
||||
"version": "10.1.0",
|
||||
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.1.0.tgz",
|
||||
"integrity": "sha512-hLUDfcpdhGv/A/q64pxkk7XQh5PCAXnv1/KxFFA6g6TdX5q6f1/z8qeFcBH87v8gWCnGgZfHKX+wYUrlD9WHng=="
|
||||
},
|
||||
"decode-uri-component": {
|
||||
"version": "0.2.0",
|
||||
@ -3522,40 +3605,6 @@
|
||||
"strip-eof": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"expand-braces": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/expand-braces/-/expand-braces-0.1.2.tgz",
|
||||
"integrity": "sha1-SIsdHSRRyz06axks/AMPRMWFX+o=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"array-slice": "^0.2.3",
|
||||
"array-unique": "^0.2.1",
|
||||
"braces": "^0.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"array-slice": {
|
||||
"version": "0.2.3",
|
||||
"resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz",
|
||||
"integrity": "sha1-3Tz7gO15c6dRF82sabC5nshhhvU=",
|
||||
"dev": true
|
||||
},
|
||||
"array-unique": {
|
||||
"version": "0.2.1",
|
||||
"resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz",
|
||||
"integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
|
||||
"dev": true
|
||||
},
|
||||
"braces": {
|
||||
"version": "0.1.5",
|
||||
"resolved": "https://registry.npmjs.org/braces/-/braces-0.1.5.tgz",
|
||||
"integrity": "sha1-wIVxEIUpHYt1/ddOqw+FlygHEeY=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"expand-range": "^0.1.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"expand-brackets": {
|
||||
"version": "2.1.4",
|
||||
"resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz",
|
||||
@ -3606,30 +3655,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"expand-range": {
|
||||
"version": "0.1.1",
|
||||
"resolved": "https://registry.npmjs.org/expand-range/-/expand-range-0.1.1.tgz",
|
||||
"integrity": "sha1-TLjtoJk8pW+k9B/ELzy7TMrf8EQ=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"is-number": "^0.1.1",
|
||||
"repeat-string": "^0.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-number": {
|
||||
"version": "0.1.1",
|
||||
"resolved": "https://registry.npmjs.org/is-number/-/is-number-0.1.1.tgz",
|
||||
"integrity": "sha1-aaevEWlj1HIG7JvZtIoUIW8eOAY=",
|
||||
"dev": true
|
||||
},
|
||||
"repeat-string": {
|
||||
"version": "0.2.2",
|
||||
"resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-0.2.2.tgz",
|
||||
"integrity": "sha1-x6jTI2BoNiBZp+RlH8aITosftK4=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"expand-tilde": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz",
|
||||
@ -4052,6 +4077,17 @@
|
||||
"readable-stream": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"fs-extra": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",
|
||||
"integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "^4.1.2",
|
||||
"jsonfile": "^4.0.0",
|
||||
"universalify": "^0.1.0"
|
||||
}
|
||||
},
|
||||
"fs-minipass": {
|
||||
"version": "1.2.5",
|
||||
"resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz",
|
||||
@ -5760,6 +5796,15 @@
|
||||
"minimist": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"jsonfile": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
|
||||
"integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "^4.1.6"
|
||||
}
|
||||
},
|
||||
"jsx-ast-utils": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-2.0.1.tgz",
|
||||
@ -5776,28 +5821,27 @@
|
||||
"dev": true
|
||||
},
|
||||
"karma": {
|
||||
"version": "3.1.4",
|
||||
"resolved": "https://registry.npmjs.org/karma/-/karma-3.1.4.tgz",
|
||||
"integrity": "sha512-31Vo8Qr5glN+dZEVIpnPCxEGleqE0EY6CtC2X9TagRV3rRQ3SNrvfhddICkJgUK3AgqpeKSZau03QumTGhGoSw==",
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/karma/-/karma-4.0.1.tgz",
|
||||
"integrity": "sha512-ind+4s03BqIXas7ZmraV3/kc5+mnqwCd+VDX1FndS6jxbt03kQKX2vXrWxNLuCjVYmhMwOZosAEKMM0a2q7w7A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"bluebird": "^3.3.0",
|
||||
"body-parser": "^1.16.1",
|
||||
"braces": "^2.3.2",
|
||||
"chokidar": "^2.0.3",
|
||||
"colors": "^1.1.0",
|
||||
"combine-lists": "^1.0.0",
|
||||
"connect": "^3.6.0",
|
||||
"core-js": "^2.2.0",
|
||||
"di": "^0.0.1",
|
||||
"dom-serialize": "^2.2.0",
|
||||
"expand-braces": "^0.1.1",
|
||||
"flatted": "^2.0.0",
|
||||
"glob": "^7.1.1",
|
||||
"graceful-fs": "^4.1.2",
|
||||
"http-proxy": "^1.13.0",
|
||||
"isbinaryfile": "^3.0.0",
|
||||
"lodash": "^4.17.5",
|
||||
"log4js": "^3.0.0",
|
||||
"lodash": "^4.17.11",
|
||||
"log4js": "^4.0.0",
|
||||
"mime": "^2.3.1",
|
||||
"minimatch": "^3.0.2",
|
||||
"optimist": "^0.6.1",
|
||||
@ -6167,16 +6211,16 @@
|
||||
}
|
||||
},
|
||||
"log4js": {
|
||||
"version": "3.0.6",
|
||||
"resolved": "https://registry.npmjs.org/log4js/-/log4js-3.0.6.tgz",
|
||||
"integrity": "sha512-ezXZk6oPJCWL483zj64pNkMuY/NcRX5MPiB0zE6tjZM137aeusrOnW1ecxgF9cmwMWkBMhjteQxBPoZBh9FDxQ==",
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/log4js/-/log4js-4.0.2.tgz",
|
||||
"integrity": "sha512-KE7HjiieVDPPdveA3bJZSuu0n8chMkFl8mIoisBFxwEJ9FmXe4YzNuiqSwYUiR1K8q8/5/8Yd6AClENY1RA9ww==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"circular-json": "^0.5.5",
|
||||
"date-format": "^1.2.0",
|
||||
"date-format": "^2.0.0",
|
||||
"debug": "^3.1.0",
|
||||
"flatted": "^2.0.0",
|
||||
"rfdc": "^1.1.2",
|
||||
"streamroller": "0.7.0"
|
||||
"streamroller": "^1.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
@ -6514,9 +6558,9 @@
|
||||
}
|
||||
},
|
||||
"mocha": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-6.0.1.tgz",
|
||||
"integrity": "sha512-tQzCxWqxSD6Oyg5r7Ptbev0yAMD8p+Vfh4snPFuiUsWqYj0eVYTDT2DkEY307FTj0WRlIWN9rWMMAUzRmijgVQ==",
|
||||
"version": "6.0.2",
|
||||
"resolved": "https://registry.npmjs.org/mocha/-/mocha-6.0.2.tgz",
|
||||
"integrity": "sha512-RtTJsmmToGyeTznSOMoM6TPEk1A84FQaHIciKrRqARZx+B5ccJ5tXlmJzEKGBxZdqk9UjpRsesZTUkZmR5YnuQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ansi-colors": "3.2.3",
|
||||
@ -8929,9 +8973,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"regenerator-transform": {
|
||||
"version": "0.13.3",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.3.tgz",
|
||||
"integrity": "sha512-5ipTrZFSq5vU2YoGoww4uaRVAK4wyYC4TSICibbfEPOruUu8FFP7ErV0BjmbIOEpn3O/k9na9UEdYR/3m7N6uA==",
|
||||
"version": "0.13.4",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.13.4.tgz",
|
||||
"integrity": "sha512-T0QMBjK3J0MtxjPmdIMXm72Wvj2Abb0Bd4HADdfijwMdoIsyQZ6fWC7kDFhk2YinBBEMZDL7Y7wh0J1sGx3S4A==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"private": "^0.1.6"
|
||||
@ -9792,17 +9836,27 @@
|
||||
"dev": true
|
||||
},
|
||||
"streamroller": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/streamroller/-/streamroller-0.7.0.tgz",
|
||||
"integrity": "sha512-WREzfy0r0zUqp3lGO096wRuUp7ho1X6uo/7DJfTlEi0Iv/4gT7YHqXDjKC2ioVGBZtE8QzsQD9nx1nIuoZ57jQ==",
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/streamroller/-/streamroller-1.0.3.tgz",
|
||||
"integrity": "sha512-P7z9NwP51EltdZ81otaGAN3ob+/F88USJE546joNq7bqRNTe6jc74fTBDyynxP4qpIfKlt/CesEYicuMzI0yJg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"date-format": "^1.2.0",
|
||||
"async": "^2.6.1",
|
||||
"date-format": "^2.0.0",
|
||||
"debug": "^3.1.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"readable-stream": "^2.3.0"
|
||||
"fs-extra": "^7.0.0",
|
||||
"lodash": "^4.17.10"
|
||||
},
|
||||
"dependencies": {
|
||||
"async": {
|
||||
"version": "2.6.2",
|
||||
"resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz",
|
||||
"integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"lodash": "^4.17.11"
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "3.2.6",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
|
||||
@ -10002,9 +10056,9 @@
|
||||
}
|
||||
},
|
||||
"terser-webpack-plugin": {
|
||||
"version": "1.2.2",
|
||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.2.tgz",
|
||||
"integrity": "sha512-1DMkTk286BzmfylAvLXwpJrI7dWa5BnFmscV/2dCr8+c56egFcbaeFAl7+sujAjdmpLam21XRdhA4oifLyiWWg==",
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.2.3.tgz",
|
||||
"integrity": "sha512-GOK7q85oAb/5kE12fMuLdn2btOS9OBZn4VsecpHDywoUC/jLhSAKOiYo0ezx7ss2EXPMzyEWFoE0s1WLE+4+oA==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"cacache": "^11.0.2",
|
||||
@ -10448,6 +10502,12 @@
|
||||
"through2-filter": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"universalify": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
|
||||
"integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
|
||||
"dev": true
|
||||
},
|
||||
"unpipe": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
||||
@ -10747,15 +10807,15 @@
|
||||
}
|
||||
},
|
||||
"webpack": {
|
||||
"version": "4.29.5",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.29.5.tgz",
|
||||
"integrity": "sha512-DuWlYUT982c7XVHodrLO9quFbNpVq5FNxLrMUfYUTlgKW0+yPimynYf1kttSQpEneAL1FH3P3OLNgkyImx8qIQ==",
|
||||
"version": "4.29.6",
|
||||
"resolved": "https://registry.npmjs.org/webpack/-/webpack-4.29.6.tgz",
|
||||
"integrity": "sha512-MwBwpiE1BQpMDkbnUUaW6K8RFZjljJHArC6tWQJoFm0oQtfoSebtg4Y7/QHnJ/SddtjYLHaKGX64CFjG5rehJw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@webassemblyjs/ast": "1.8.3",
|
||||
"@webassemblyjs/helper-module-context": "1.8.3",
|
||||
"@webassemblyjs/wasm-edit": "1.8.3",
|
||||
"@webassemblyjs/wasm-parser": "1.8.3",
|
||||
"@webassemblyjs/ast": "1.8.5",
|
||||
"@webassemblyjs/helper-module-context": "1.8.5",
|
||||
"@webassemblyjs/wasm-edit": "1.8.5",
|
||||
"@webassemblyjs/wasm-parser": "1.8.5",
|
||||
"acorn": "^6.0.5",
|
||||
"acorn-dynamic-import": "^4.0.0",
|
||||
"ajv": "^6.1.0",
|
||||
|
||||
14
package.json
14
package.json
@ -87,7 +87,7 @@
|
||||
"Waldir Pimenta (https://github.com/waldyrious)",
|
||||
"Zach Zibrat (https://github.com/palimpsests)"
|
||||
],
|
||||
"homepage": "http://mathjs.org",
|
||||
"homepage": "https://mathjs.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/josdejong/mathjs.git"
|
||||
@ -110,7 +110,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"complex.js": "2.0.11",
|
||||
"decimal.js": "10.0.2",
|
||||
"decimal.js": "10.1.0",
|
||||
"escape-latex": "1.2.0",
|
||||
"fraction.js": "4.0.12",
|
||||
"javascript-natural-sort": "0.7.1",
|
||||
@ -119,9 +119,9 @@
|
||||
"typed-function": "1.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.3.3",
|
||||
"@babel/core": "7.3.4",
|
||||
"@babel/plugin-transform-object-assign": "7.2.0",
|
||||
"@babel/preset-env": "7.3.1",
|
||||
"@babel/preset-env": "7.3.4",
|
||||
"@babel/register": "7.0.0",
|
||||
"babel-loader": "8.0.5",
|
||||
"benchmark": "2.1.4",
|
||||
@ -133,7 +133,7 @@
|
||||
"gulp-util": "3.0.8",
|
||||
"istanbul": "0.4.5",
|
||||
"jsep": "0.3.4",
|
||||
"karma": "3.1.4",
|
||||
"karma": "4.0.1",
|
||||
"karma-browserstack-launcher": "1.4.0",
|
||||
"karma-firefox-launcher": "1.1.0",
|
||||
"karma-mocha": "1.3.0",
|
||||
@ -141,7 +141,7 @@
|
||||
"karma-webpack": "3.0.5",
|
||||
"math-expression-evaluator": "1.2.17",
|
||||
"mkdirp": "0.5.1",
|
||||
"mocha": "6.0.1",
|
||||
"mocha": "6.0.2",
|
||||
"ndarray": "1.0.18",
|
||||
"ndarray-determinant": "1.0.0",
|
||||
"ndarray-gemm": "1.0.0",
|
||||
@ -156,7 +156,7 @@
|
||||
"tar": "4.4.8",
|
||||
"uglify-js": "3.4.9",
|
||||
"underscore": "1.9.1",
|
||||
"webpack": "4.29.5",
|
||||
"webpack": "4.29.6",
|
||||
"zeros": "1.0.0"
|
||||
},
|
||||
"main": "./index",
|
||||
|
||||
@ -9,7 +9,7 @@ function factory (type, config, load, typed) {
|
||||
* Evaluate an expression.
|
||||
*
|
||||
* Note the evaluating arbitrary expressions may involve security risks,
|
||||
* see [http://mathjs.org/docs/expressions/security.html](http://mathjs.org/docs/expressions/security.html) for more information.
|
||||
* see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
|
||||
@ -8,7 +8,7 @@ function factory (type, config, load, typed) {
|
||||
* invoking node.eval().
|
||||
*
|
||||
* Note the evaluating arbitrary expressions may involve security risks,
|
||||
* see [http://mathjs.org/docs/expressions/security.html](http://mathjs.org/docs/expressions/security.html) for more information.
|
||||
* see [https://mathjs.org/docs/expressions/security.html](https://mathjs.org/docs/expressions/security.html) for more information.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
|
||||
@ -370,10 +370,13 @@ function factory (type, config, load, typed) {
|
||||
operand = '(' + operand + ')'
|
||||
}
|
||||
|
||||
// for example for "not", we want a space between operand and argument
|
||||
const opIsNamed = /[a-zA-Z]+/.test(this.op)
|
||||
|
||||
if (assoc === 'right') { // prefix operator
|
||||
return this.op + operand
|
||||
return this.op + (opIsNamed ? ' ' : '') + operand
|
||||
} else if (assoc === 'left') { // postfix
|
||||
return operand + this.op
|
||||
return operand + (opIsNamed ? ' ' : '') + this.op
|
||||
}
|
||||
|
||||
// fall back to postfix
|
||||
|
||||
@ -434,11 +434,11 @@ function factory (type, config, load, typed) {
|
||||
* Test whether two given 16 bit characters form a surrogate pair of a
|
||||
* unicode math symbol.
|
||||
*
|
||||
* http://unicode-table.com/en/
|
||||
* http://www.wikiwand.com/en/Mathematical_operators_and_symbols_in_Unicode
|
||||
* https://unicode-table.com/en/
|
||||
* https://www.wikiwand.com/en/Mathematical_operators_and_symbols_in_Unicode
|
||||
*
|
||||
* Note: In ES6 will be unicode aware:
|
||||
* http://stackoverflow.com/questions/280712/javascript-unicode-regexes
|
||||
* https://stackoverflow.com/questions/280712/javascript-unicode-regexes
|
||||
* https://mathiasbynens.be/notes/es6-unicode-regex
|
||||
*
|
||||
* @param {string} high
|
||||
|
||||
@ -21,7 +21,7 @@ function factory (type, config, load, typed) {
|
||||
*
|
||||
* This uses rules of differentiation which can be found here:
|
||||
*
|
||||
* - [Differentiation rules (Wikipedia)](http://en.wikipedia.org/wiki/Differentiation_rules)
|
||||
* - [Differentiation rules (Wikipedia)](https://en.wikipedia.org/wiki/Differentiation_rules)
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
|
||||
@ -52,7 +52,7 @@ function factory (type, config, load, typed, math) {
|
||||
*
|
||||
* For more details on the theory, see:
|
||||
*
|
||||
* - [Strategies for simplifying math expressions (Stackoverflow)](http://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)
|
||||
* - [Strategies for simplifying math expressions (Stackoverflow)](https://stackoverflow.com/questions/7540227/strategies-for-simplifying-math-expressions)
|
||||
* - [Symbolic computation - Simplification (Wikipedia)](https://en.wikipedia.org/wiki/Symbolic_computation#Simplification)
|
||||
*
|
||||
* An optional `options` argument can be passed as last argument of `simplify`.
|
||||
|
||||
@ -19,8 +19,6 @@ function factory (type, config, load) {
|
||||
*
|
||||
* @param {Number} order 0: Natural, 1: Cholesky, 2: LU, 3: QR
|
||||
* @param {Matrix} m Sparse Matrix
|
||||
*
|
||||
* Reference: http://faculty.cse.tamu.edu/davis/publications.html
|
||||
*/
|
||||
const csAmd = function (order, a) {
|
||||
// check input parameters
|
||||
|
||||
@ -168,7 +168,7 @@ const _cbrtNumber = Math.cbrt || function (x) {
|
||||
|
||||
if (isFinite(x)) {
|
||||
result = Math.exp(Math.log(x) / 3)
|
||||
// from http://en.wikipedia.org/wiki/Cube_root#Numerical_methods
|
||||
// from https://en.wikipedia.org/wiki/Cube_root#Numerical_methods
|
||||
result = (x / (result * result) + (2 * result)) / 3
|
||||
} else {
|
||||
result = x
|
||||
|
||||
@ -47,9 +47,9 @@ function factory (type, config, load, typed) {
|
||||
|
||||
'Array | Matrix, Array | Matrix': function (x, y) {
|
||||
// TODO: implement matrix right division using pseudo inverse
|
||||
// http://www.mathworks.nl/help/matlab/ref/mrdivide.html
|
||||
// http://www.gnu.org/software/octave/doc/interpreter/Arithmetic-Ops.html
|
||||
// http://stackoverflow.com/questions/12263932/how-does-gnu-octave-matrix-division-work-getting-unexpected-behaviour
|
||||
// https://www.mathworks.nl/help/matlab/ref/mrdivide.html
|
||||
// https://www.gnu.org/software/octave/doc/interpreter/Arithmetic-Ops.html
|
||||
// https://stackoverflow.com/questions/12263932/how-does-gnu-octave-matrix-division-work-getting-unexpected-behaviour
|
||||
return multiply(x, inv(y))
|
||||
},
|
||||
|
||||
|
||||
@ -129,7 +129,7 @@ function factory (type, config, load, typed) {
|
||||
throw new Error('Parameters in function gcd must be integer numbers')
|
||||
}
|
||||
|
||||
// http://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
// https://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
const zero = new type.BigNumber(0)
|
||||
while (!b.isZero()) {
|
||||
const r = a.mod(b)
|
||||
@ -152,7 +152,7 @@ function _gcd (a, b) {
|
||||
throw new Error('Parameters in function gcd must be integer numbers')
|
||||
}
|
||||
|
||||
// http://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
// https://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
let r
|
||||
while (b !== 0) {
|
||||
r = a % b
|
||||
|
||||
@ -136,7 +136,7 @@ function factory (type, config, load, typed) {
|
||||
return new type.BigNumber(0)
|
||||
}
|
||||
|
||||
// http://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
// https://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
// evaluate lcm here inline to reduce overhead
|
||||
const prod = a.times(b)
|
||||
while (!b.isZero()) {
|
||||
@ -164,7 +164,7 @@ function _lcm (a, b) {
|
||||
return 0
|
||||
}
|
||||
|
||||
// http://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
// https://en.wikipedia.org/wiki/Euclidean_algorithm
|
||||
// evaluate lcm here inline to reduce overhead
|
||||
let t
|
||||
const prod = a * b
|
||||
|
||||
@ -21,7 +21,7 @@ function factory (type, config, load, typed) {
|
||||
*
|
||||
* x - y * floor(x / y)
|
||||
*
|
||||
* See http://en.wikipedia.org/wiki/Modulo_operation.
|
||||
* See https://en.wikipedia.org/wiki/Modulo_operation.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
@ -134,7 +134,7 @@ function factory (type, config, load, typed) {
|
||||
if (y > 0) {
|
||||
// We don't use JavaScript's % operator here as this doesn't work
|
||||
// correctly for x < 0 and x === 0
|
||||
// see http://en.wikipedia.org/wiki/Modulo_operation
|
||||
// see https://en.wikipedia.org/wiki/Modulo_operation
|
||||
return x - y * Math.floor(x / y)
|
||||
} else if (y === 0) {
|
||||
return x
|
||||
|
||||
@ -150,7 +150,7 @@ function factory (type, config, load, typed) {
|
||||
|
||||
/**
|
||||
* Calculate the nth root of a for BigNumbers, solve x^root == a
|
||||
* http://rosettacode.org/wiki/Nth_root#JavaScript
|
||||
* https://rosettacode.org/wiki/Nth_root#JavaScript
|
||||
* @param {BigNumber} a
|
||||
* @param {BigNumber} root
|
||||
* @private
|
||||
@ -191,7 +191,7 @@ function factory (type, config, load, typed) {
|
||||
|
||||
/**
|
||||
* Calculate the nth root of a, solve x^root == a
|
||||
* http://rosettacode.org/wiki/Nth_root#JavaScript
|
||||
* https://rosettacode.org/wiki/Nth_root#JavaScript
|
||||
* @param {number} a
|
||||
* @param {number} root
|
||||
* @private
|
||||
|
||||
@ -7,7 +7,7 @@ function factory (type, config, load, typed) {
|
||||
|
||||
/**
|
||||
* Calculate the extended greatest common divisor for two values.
|
||||
* See http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm.
|
||||
* See https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm.
|
||||
*
|
||||
* Syntax:
|
||||
*
|
||||
@ -46,7 +46,7 @@ function factory (type, config, load, typed) {
|
||||
* @private
|
||||
*/
|
||||
function _xgcd (a, b) {
|
||||
// source: http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
|
||||
// source: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
|
||||
let t // used to swap two variables
|
||||
let q // quotient
|
||||
let r // remainder
|
||||
@ -92,7 +92,7 @@ function factory (type, config, load, typed) {
|
||||
* @private
|
||||
*/
|
||||
function _xgcdBigNumber (a, b) {
|
||||
// source: http://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
|
||||
// source: https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm
|
||||
let // used to swap two variables
|
||||
t
|
||||
|
||||
|
||||
@ -124,7 +124,7 @@ function factory (type, config, load, typed) {
|
||||
} else {
|
||||
// this is a matrix of 3 x 3 or larger
|
||||
// calculate inverse using gauss-jordan elimination
|
||||
// http://en.wikipedia.org/wiki/Gaussian_elimination
|
||||
// https://en.wikipedia.org/wiki/Gaussian_elimination
|
||||
// http://mathworld.wolfram.com/MatrixInverse.html
|
||||
// http://math.uww.edu/~mcfarlat/inverse.htm
|
||||
|
||||
|
||||
@ -82,7 +82,7 @@ function factory (type, config, load, typed) {
|
||||
/**
|
||||
* Quickselect algorithm.
|
||||
* Code adapted from:
|
||||
* http://blog.teamleadnet.com/2012/07/quick-select-algorithm-find-kth-element.html
|
||||
* https://blog.teamleadnet.com/2012/07/quick-select-algorithm-find-kth-element.html
|
||||
*
|
||||
* @param {Array} arr
|
||||
* @param {Number} k
|
||||
|
||||
@ -267,7 +267,7 @@ function factory (type, config, load, typed, math) {
|
||||
},
|
||||
|
||||
// Implementation of normal distribution using Box-Muller transform
|
||||
// ref : http://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform
|
||||
// ref : https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform
|
||||
// We take : mean = 0.5, standard deviation = 1/6
|
||||
// so that 99.7% values are in [0, 1].
|
||||
normal: function () {
|
||||
|
||||
@ -9,7 +9,7 @@ function factory (type, config, load, typed) {
|
||||
* approximations for different intervals of x.
|
||||
*
|
||||
* This is a translation of W. J. Cody's Fortran implementation from 1987
|
||||
* ( http://www.netlib.org/specfun/erf ). See the AMS publication
|
||||
* ( https://www.netlib.org/specfun/erf ). See the AMS publication
|
||||
* "Rational Chebyshev Approximations for the Error Function" by W. J. Cody
|
||||
* for an explanation of this process.
|
||||
*
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
* use this file except in compliance with the License. You may obtain a copy
|
||||
* of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
|
||||
@ -9,7 +9,7 @@ function factory (type, config, load, typed, math) {
|
||||
return unit
|
||||
}
|
||||
|
||||
// Source: http://www.wikiwand.com/en/Physical_constant
|
||||
// Source: https://en.wikipedia.org/wiki/Physical_constant
|
||||
|
||||
// Universal constants
|
||||
setLazyConstant(math, 'speedOfLight', function () { return fixedUnit('299792458 m s^-1') })
|
||||
|
||||
@ -69,7 +69,7 @@ describe('parse', function () {
|
||||
})
|
||||
|
||||
it('should parse unicode and other special characters', function () {
|
||||
// http://unicode-table.com/en
|
||||
// https://unicode-table.com/en
|
||||
let scope = {}
|
||||
|
||||
math.eval('$ab$c = 2', scope) // dollar sign
|
||||
@ -1949,6 +1949,17 @@ describe('parse', function () {
|
||||
assert.strictEqual(parse('1/2a').toString(), '1 / 2 a')
|
||||
})
|
||||
|
||||
it('should correctly stringify named operators', function () {
|
||||
assert.strictEqual(parse('7 mod 3').toString(), '7 mod 3')
|
||||
assert.strictEqual(parse('5 inch to cm').toString(), '5 inch to cm')
|
||||
assert.strictEqual(parse('5 inch in cm').toString(), '5 inch in cm')
|
||||
assert.strictEqual(parse('false and true').toString(), 'false and true')
|
||||
assert.strictEqual(parse('false xor true').toString(), 'false xor true')
|
||||
assert.strictEqual(parse('false or true').toString(), 'false or true')
|
||||
assert.strictEqual(parse('not true').toString(), 'not true')
|
||||
assert.strictEqual(parse('5!').toString(), '5!')
|
||||
})
|
||||
|
||||
it('should correctly stringify an index with dot notation', function () {
|
||||
assert.strictEqual(parse('A[2]').toString(), 'A[2]')
|
||||
assert.strictEqual(parse('a["b"]').toString(), 'a["b"]')
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
function pi() {
|
||||
// the Bailey-Borwein-Plouffe formula
|
||||
// http://stackoverflow.com/questions/4484489/using-basic-arithmetics-for-calculating-pi-with-arbitary-precision
|
||||
// https://stackoverflow.com/questions/4484489/using-basic-arithmetics-for-calculating-pi-with-arbitary-precision
|
||||
|
||||
var zero = new Decimal(0);
|
||||
var one = new Decimal(1);
|
||||
|
||||
@ -275,7 +275,7 @@ const _importFromStream = function (stream, deferred) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Imports a Matrix Market matrix from the filesystem. (http://math.nist.gov/MatrixMarket/)
|
||||
* Imports a Matrix Market matrix from the filesystem. (https://math.nist.gov/MatrixMarket/)
|
||||
*/
|
||||
const _import = typed('importMatrix', {
|
||||
'Array': function (files) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user