mathjs 14.3.1 → 14.5.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.
Files changed (60) hide show
  1. package/HISTORY.md +28 -6
  2. package/README.md +1 -1
  3. package/lib/browser/math.js +1 -1
  4. package/lib/browser/math.js.LICENSE.txt +2 -2
  5. package/lib/browser/math.js.map +1 -1
  6. package/lib/cjs/constants.js +12 -12
  7. package/lib/cjs/core/create.js +1 -2
  8. package/lib/cjs/defaultInstance.js +1 -2
  9. package/lib/cjs/entry/allFactoriesAny.js +1 -2
  10. package/lib/cjs/entry/allFactoriesNumber.js +1 -2
  11. package/lib/cjs/expression/embeddedDocs/construction/index.js +1 -1
  12. package/lib/cjs/expression/embeddedDocs/embeddedDocs.js +6 -0
  13. package/lib/cjs/expression/embeddedDocs/function/expression/compile.js +14 -0
  14. package/lib/cjs/expression/embeddedDocs/function/expression/evaluate.js +1 -1
  15. package/lib/cjs/expression/embeddedDocs/function/expression/parse.js +14 -0
  16. package/lib/cjs/expression/embeddedDocs/function/expression/parser.js +14 -0
  17. package/lib/cjs/expression/embeddedDocs/function/statistics/sum.js +1 -1
  18. package/lib/cjs/expression/function/parser.js +1 -1
  19. package/lib/cjs/expression/parse.js +4 -3
  20. package/lib/cjs/function/arithmetic/add.js +33 -33
  21. package/lib/cjs/function/arithmetic/hypot.js +1 -1
  22. package/lib/cjs/function/matrix/filter.js +4 -1
  23. package/lib/cjs/function/matrix/flatten.js +1 -1
  24. package/lib/cjs/function/matrix/forEach.js +2 -1
  25. package/lib/cjs/function/matrix/map.js +2 -1
  26. package/lib/cjs/header.js +2 -2
  27. package/lib/cjs/type/matrix/DenseMatrix.js +144 -81
  28. package/lib/cjs/type/matrix/SparseMatrix.js +4 -3
  29. package/lib/cjs/type/unit/Unit.js +19 -4
  30. package/lib/cjs/utils/array.js +31 -7
  31. package/lib/cjs/utils/collection.js +3 -3
  32. package/lib/cjs/utils/latex.js +4 -1
  33. package/lib/cjs/utils/optimizeCallback.js +61 -13
  34. package/lib/cjs/utils/snapshot.js +1 -2
  35. package/lib/cjs/version.js +1 -1
  36. package/lib/esm/constants.js +12 -12
  37. package/lib/esm/expression/embeddedDocs/construction/index.js +1 -1
  38. package/lib/esm/expression/embeddedDocs/embeddedDocs.js +6 -0
  39. package/lib/esm/expression/embeddedDocs/function/expression/compile.js +8 -0
  40. package/lib/esm/expression/embeddedDocs/function/expression/evaluate.js +1 -1
  41. package/lib/esm/expression/embeddedDocs/function/expression/parse.js +8 -0
  42. package/lib/esm/expression/embeddedDocs/function/expression/parser.js +8 -0
  43. package/lib/esm/expression/embeddedDocs/function/statistics/sum.js +1 -1
  44. package/lib/esm/expression/function/parser.js +1 -1
  45. package/lib/esm/expression/parse.js +4 -3
  46. package/lib/esm/function/arithmetic/add.js +33 -33
  47. package/lib/esm/function/arithmetic/hypot.js +1 -1
  48. package/lib/esm/function/matrix/filter.js +4 -1
  49. package/lib/esm/function/matrix/flatten.js +1 -1
  50. package/lib/esm/function/matrix/forEach.js +2 -1
  51. package/lib/esm/function/matrix/map.js +2 -1
  52. package/lib/esm/type/matrix/DenseMatrix.js +150 -87
  53. package/lib/esm/type/matrix/SparseMatrix.js +4 -3
  54. package/lib/esm/type/unit/Unit.js +19 -4
  55. package/lib/esm/utils/array.js +33 -9
  56. package/lib/esm/utils/collection.js +3 -3
  57. package/lib/esm/utils/latex.js +4 -1
  58. package/lib/esm/utils/optimizeCallback.js +61 -13
  59. package/lib/esm/version.js +1 -1
  60. package/package.json +20 -20
package/HISTORY.md CHANGED
@@ -1,10 +1,32 @@
1
1
  # History
2
2
 
3
- # 2024-03-06, 14.3.1
3
+ # 2025-05-21, 14.5.0
4
+
5
+ - Feat: improve the performance of the `map` and `forEach` methods of
6
+ `DenseMatrix` (#3446). Thanks @dvd101x.
7
+ - Feat: improve the performance of `subset` (#3467). Thanks @dvd101x.
8
+ - Feat: define embedded docs for `compile`, `evaluate`, `parse`, and `parser`,
9
+ and add tests for the examples in embedded docs (#3413). Thanks @dvd101x.
10
+ - Fix: #3450 support multiplication of valueless units by arbitrary types
11
+ (#3454).
12
+ - Fix: #3474 correctly parse `(lbf in)` (#3476). Thanks @costerwi.
13
+
14
+ # 2025-03-28, 14.4.0
15
+
16
+ - Feat: improve the performance of function `flatten` (#3400). Thanks @dvd101x.
17
+ - Feat: improve the performance of `map` and `forEach` (#3409).
18
+ Thanks @dvd101x.
19
+ - Feat: add LaTeX representation for fractions (#3434, #3419). Thanks @orelbn.
20
+ - Fix: #3422 allow dot operators after symbol E (#3425).
21
+ - Fix: issue in the `nthRoots` latex function template string (#3427).
22
+ Thanks @aitee.
23
+ - Fix: upgrade to the latest version of `@babel/runtime`.
24
+
25
+ # 2025-03-06, 14.3.1
4
26
 
5
27
  - Fix: #3350 cannot import a constant that is a complex number.
6
28
 
7
- # 2024-02-28, 14.3.0
29
+ # 2025-02-28, 14.3.0
8
30
 
9
31
  - Feat: improved performance of function `flatten` (#3354). Thanks @dvd101x.
10
32
  - Feat: improved performance of `DenseMatrix` Symbol.iterator (#3395).
@@ -20,11 +42,11 @@
20
42
  - Fix: #3387 use utility `math.isNaN` for consistent `max` and `min` results
21
43
  (#3389). Thanks @orelbn.
22
44
 
23
- # 2024-02-05, 14.2.1
45
+ # 2025-02-05, 14.2.1
24
46
 
25
47
  - Fix: #3377 remove redundant dependency `@lambdatest/node-tunnel`.
26
48
 
27
- # 2024-01-30, 14.2.0
49
+ # 2025-01-30, 14.2.0
28
50
 
29
51
  - Feat: #3041, #3340 rename `apply` to `mapSlices` (#3357). Function
30
52
  `apply` is still available but is now marked deprecated. Thanks @gwhitney.
@@ -159,9 +181,9 @@
159
181
  Breaking changes:
160
182
 
161
183
  - Change `isZero`, `isPositive`, and `isNegative` to respect `config.epsilon`
162
- (#3139, #2838).
184
+ (#3139, #2838). Thanks @dvd101x.
163
185
  - Change the behavior of the internal `nearlyEqual` to align with Python and
164
- Julia (#3152, #2838)
186
+ Julia (#3152, #2838). Thanks @dvd101x.
165
187
  - Upgrade to `fraction.js@4.3.7`,
166
188
  see <https://github.com/rawify/Fraction.js/issues/68>.
167
189
  - Dropped support for JavaScript engines that do not fully support ES6 or
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![math.js](https://raw.github.com/josdejong/mathjs/master/misc/img/mathjs.png)
1
+ ![math.js](https://raw.githubusercontent.com/josdejong/mathjs/develop/misc/img/mathjs.svg)
2
2
 
3
3
  [https://mathjs.org](https://mathjs.org)
4
4