mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
Release v4.4.2
This commit is contained in:
parent
a91998446d
commit
9f3674380d
@ -1,11 +1,13 @@
|
||||
# History
|
||||
|
||||
|
||||
## not yet released, version 4.4.2
|
||||
## 2018-06-02, version 4.4.2
|
||||
|
||||
- Drastically improved the performance of `det`. Thanks @ericman314.
|
||||
- Fixed #1065, #1121: Fixed wrong documentation of function
|
||||
`compareNatural` and clarified the behavior for strings.
|
||||
- Fixed #1122 a regression in function `inv` (since `v4.4.1`).
|
||||
Thanks @ericman314.
|
||||
|
||||
|
||||
## 2018-05-29, version 4.4.1
|
||||
|
||||
7211
dist/math.js
vendored
7211
dist/math.js
vendored
File diff suppressed because it is too large
Load Diff
14
dist/math.min.js
vendored
14
dist/math.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/math.min.map
vendored
2
dist/math.min.map
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,11 @@ approximately 2.22e-16.
|
||||
For Complex numbers, first the real parts are compared. If equal,
|
||||
the imaginary parts are compared.
|
||||
|
||||
Strings are compared lexically.
|
||||
Strings are compared with a natural sorting algorithm, which
|
||||
orders strings in a "logic" way following some heuristics.
|
||||
This differs from the function `compare`, which converts the string
|
||||
into a numeric value and compares that. The function `compareText`
|
||||
on the other hand compares text lexically.
|
||||
|
||||
Arrays and Matrices are compared value by value until there is an
|
||||
unequal pair of values encountered. Objects are compared by sorted
|
||||
@ -51,6 +55,13 @@ math.compareNatural(2, 3); // returns -1
|
||||
math.compareNatural(7, 7); // returns 0
|
||||
|
||||
math.compareNatural('10', '2'); // returns 1
|
||||
math.compareText('10', '2'); // returns -1
|
||||
math.compare('10', '2'); // returns 1
|
||||
|
||||
math.compareNatural('Answer: 10', 'Answer: 2'); // returns 1
|
||||
math.compareText('Answer: 10', 'Answer: 2'); // returns -1
|
||||
math.compare('Answer: 10', 'Answer: 2');
|
||||
// Error: Cannot convert "Answer: 10" to a number
|
||||
|
||||
var a = math.unit('5 cm');
|
||||
var b = math.unit('40 mm');
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
module.exports = '4.4.1';
|
||||
module.exports = '4.4.2';
|
||||
// Note: This file is automatically generated when building math.js.
|
||||
// Changes made in this file will be overwritten.
|
||||
|
||||
78
package-lock.json
generated
78
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mathjs",
|
||||
"version": "4.3.0",
|
||||
"version": "4.4.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -703,8 +703,8 @@
|
||||
"integrity": "sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"buffers": "~0.1.1",
|
||||
"chainsaw": "~0.1.0"
|
||||
"buffers": "0.1.1",
|
||||
"chainsaw": "0.1.0"
|
||||
}
|
||||
},
|
||||
"binary-extensions": {
|
||||
@ -940,10 +940,7 @@
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.5.0.tgz",
|
||||
"integrity": "sha1-tWVCWtYu1ywQgqHrl51TE8fUdU8=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"https-proxy-agent": "1.0.0"
|
||||
}
|
||||
"dev": true
|
||||
},
|
||||
"browserstacktunnel-wrapper": {
|
||||
"version": "2.0.2",
|
||||
@ -951,8 +948,7 @@
|
||||
"integrity": "sha512-7w7HYA00qjBtuQH0c5rqW7RbWPHyRROqTZofwNp5G0sKc2fYChsTfbHz3ul8Yd+ffkQvR81m+iPjEB004P6kxQ==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"https-proxy-agent": "^1.0.0",
|
||||
"unzip": "~0.1.9"
|
||||
"unzip": "0.1.11"
|
||||
}
|
||||
},
|
||||
"buffer": {
|
||||
@ -1134,7 +1130,7 @@
|
||||
"integrity": "sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"traverse": ">=0.3.0 <0.4"
|
||||
"traverse": "0.3.9"
|
||||
}
|
||||
},
|
||||
"chalk": {
|
||||
@ -3357,10 +3353,10 @@
|
||||
"integrity": "sha1-czfwWPu7vvqMn1YaKMqwhJICyYg=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"graceful-fs": "~3.0.2",
|
||||
"inherits": "~2.0.0",
|
||||
"mkdirp": "0.5",
|
||||
"rimraf": "2"
|
||||
"graceful-fs": "3.0.11",
|
||||
"inherits": "2.0.3",
|
||||
"mkdirp": "0.5.1",
|
||||
"rimraf": "2.6.2"
|
||||
}
|
||||
},
|
||||
"ftp": {
|
||||
@ -4792,8 +4788,8 @@
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"browserstack": "1.5.0",
|
||||
"browserstacktunnel-wrapper": "~2.0.1",
|
||||
"q": "~1.5.0"
|
||||
"browserstacktunnel-wrapper": "2.0.2",
|
||||
"q": "1.5.1"
|
||||
}
|
||||
},
|
||||
"karma-firefox-launcher": {
|
||||
@ -5462,8 +5458,8 @@
|
||||
"integrity": "sha1-mesFAJOzTf+t5CG5rAtBCpz6F88=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"buffers": "~0.1.1",
|
||||
"readable-stream": "~1.0.0"
|
||||
"buffers": "0.1.1",
|
||||
"readable-stream": "1.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"readable-stream": {
|
||||
@ -5472,10 +5468,10 @@
|
||||
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
"core-util-is": "1.0.2",
|
||||
"inherits": "2.0.3",
|
||||
"isarray": "0.0.1",
|
||||
"string_decoder": "~0.10.x"
|
||||
"string_decoder": "0.10.31"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6797,10 +6793,10 @@
|
||||
"integrity": "sha1-1vs79a7Wl+gxFQ6xACwlo/iuExQ=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"over": ">= 0.0.5 < 1",
|
||||
"readable-stream": "~1.0.31",
|
||||
"setimmediate": ">= 1.0.2 < 2",
|
||||
"slice-stream": ">= 1.0.0 < 2"
|
||||
"over": "0.0.5",
|
||||
"readable-stream": "1.0.34",
|
||||
"setimmediate": "1.0.5",
|
||||
"slice-stream": "1.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"readable-stream": {
|
||||
@ -6809,10 +6805,10 @@
|
||||
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
"core-util-is": "1.0.2",
|
||||
"inherits": "2.0.3",
|
||||
"isarray": "0.0.1",
|
||||
"string_decoder": "~0.10.x"
|
||||
"string_decoder": "0.10.31"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -7337,7 +7333,7 @@
|
||||
"integrity": "sha1-WzO9ZvATsaf4ZGCwPUY97DmtPqA=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"readable-stream": "~1.0.31"
|
||||
"readable-stream": "1.0.34"
|
||||
},
|
||||
"dependencies": {
|
||||
"readable-stream": {
|
||||
@ -7346,10 +7342,10 @@
|
||||
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
"core-util-is": "1.0.2",
|
||||
"inherits": "2.0.3",
|
||||
"isarray": "0.0.1",
|
||||
"string_decoder": "~0.10.x"
|
||||
"string_decoder": "0.10.31"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -8368,12 +8364,12 @@
|
||||
"integrity": "sha1-iXScY7BY19kNYZ+GuYqhU107l/A=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"binary": ">= 0.3.0 < 1",
|
||||
"fstream": ">= 0.1.30 < 1",
|
||||
"match-stream": ">= 0.0.2 < 1",
|
||||
"pullstream": ">= 0.4.1 < 1",
|
||||
"readable-stream": "~1.0.31",
|
||||
"setimmediate": ">= 1.0.1 < 2"
|
||||
"binary": "0.3.0",
|
||||
"fstream": "0.1.31",
|
||||
"match-stream": "0.0.2",
|
||||
"pullstream": "0.4.1",
|
||||
"readable-stream": "1.0.34",
|
||||
"setimmediate": "1.0.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"readable-stream": {
|
||||
@ -8382,10 +8378,10 @@
|
||||
"integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"core-util-is": "~1.0.0",
|
||||
"inherits": "~2.0.1",
|
||||
"core-util-is": "1.0.2",
|
||||
"inherits": "2.0.3",
|
||||
"isarray": "0.0.1",
|
||||
"string_decoder": "~0.10.x"
|
||||
"string_decoder": "0.10.31"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mathjs",
|
||||
"version": "4.4.1",
|
||||
"version": "4.4.2",
|
||||
"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.",
|
||||
"author": "Jos de Jong <wjosdejong@gmail.com> (https://github.com/josdejong)",
|
||||
"contributors": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user