mathjs 12.0.0 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HISTORY.md +18 -3
- package/lib/browser/math.js +1 -1
- package/lib/browser/math.js.LICENSE.txt +2 -2
- package/lib/browser/math.js.map +1 -1
- package/lib/cjs/expression/embeddedDocs/function/arithmetic/round.js +2 -2
- package/lib/cjs/function/algebra/derivative.js +8 -31
- package/lib/cjs/function/arithmetic/gcd.js +4 -5
- package/lib/cjs/function/arithmetic/mod.js +2 -9
- package/lib/cjs/function/arithmetic/round.js +59 -16
- package/lib/cjs/function/probability/pickRandom.js +2 -2
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/type/number.js +2 -2
- package/lib/cjs/utils/snapshot.js +6 -6
- package/lib/cjs/version.js +1 -1
- package/lib/esm/expression/embeddedDocs/function/arithmetic/round.js +2 -2
- package/lib/esm/function/algebra/derivative.js +8 -31
- package/lib/esm/function/arithmetic/mod.js +2 -9
- package/lib/esm/function/arithmetic/round.js +40 -17
- package/lib/esm/function/probability/pickRandom.js +2 -2
- package/lib/esm/type/number.js +2 -2
- package/lib/esm/version.js +1 -1
- package/package.json +13 -13
- package/types/index.d.ts +29 -7
package/HISTORY.md
CHANGED
@@ -1,11 +1,21 @@
|
|
1
1
|
# History
|
2
2
|
|
3
3
|
|
4
|
+
# 2023-11-17, 12.1.0
|
5
|
+
|
6
|
+
- Feat: Extend function `round` with support for units (#2761, #3095).
|
7
|
+
- Feat: Extend function `mod` with support for negative divisors in when
|
8
|
+
using `BigNumber` or `Fraction` (#3087).
|
9
|
+
- Fix: #3092 a typo in an error message when converting a string into a number.
|
10
|
+
- Fix: #3094 function `derivative` mutates the input expression when it fails.
|
11
|
+
|
12
|
+
|
4
13
|
# 2023-10-26, 12.0.0
|
5
14
|
|
6
15
|
Breaking changes:
|
7
16
|
|
8
|
-
- Fix #2879, #2927, #3014: change the confusing interface of `eigs
|
17
|
+
- Fix #2879, #2927, #3014: change the confusing interface of `eigs` (#3037),
|
18
|
+
thanks @gwhitney.
|
9
19
|
Before, functions `eigs` returned an object:
|
10
20
|
```
|
11
21
|
{ values: MathCollection; vectors: MathCollection }
|
@@ -28,10 +38,15 @@ Breaking changes:
|
|
28
38
|
- Type `MathJsStatic` is renamed to `MathJsInstance`.
|
29
39
|
- Type `FactoryDependencies` is deprecated, use `MathJsFactory` instead, and
|
30
40
|
import dependency maps directly from the library.
|
31
|
-
- Change the assignment operator of
|
32
|
-
#
|
41
|
+
- Change the assignment operator of `.toTex()` output from `:=` to `=` (see
|
42
|
+
#2980, #2987).
|
33
43
|
- Drop official support for Node.js 14 and 16.
|
34
44
|
|
45
|
+
Features:
|
46
|
+
|
47
|
+
- Function `eigs` now has an option to turn off calculation of eigenvectors
|
48
|
+
(#3057, #2180). Thanks @gwhitney.
|
49
|
+
|
35
50
|
Fixes:
|
36
51
|
|
37
52
|
- Find eigenvectors of defective matrices (#3037). Thanks @gwhitney.
|