mathjs 11.7.0 → 11.8.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 (39) hide show
  1. package/HISTORY.md +10 -0
  2. package/README.md +0 -26
  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/core/function/typed.js +1 -1
  7. package/lib/cjs/expression/node/FunctionAssignmentNode.js +1 -1
  8. package/lib/cjs/expression/node/OperatorNode.js +1 -3
  9. package/lib/cjs/expression/operators.js +19 -4
  10. package/lib/cjs/factoriesNumber.js +18 -0
  11. package/lib/cjs/function/algebra/rationalize.js +1 -3
  12. package/lib/cjs/function/algebra/simplifyConstant.js +1 -1
  13. package/lib/cjs/function/algebra/sparse/csAmd.js +1 -3
  14. package/lib/cjs/function/algebra/sparse/csLeaf.js +1 -3
  15. package/lib/cjs/function/geometry/distance.js +13 -15
  16. package/lib/cjs/function/matrix/eigs/complexEigs.js +3 -3
  17. package/lib/cjs/function/matrix/matrixFromColumns.js +1 -1
  18. package/lib/cjs/function/matrix/matrixFromRows.js +1 -1
  19. package/lib/cjs/header.js +2 -2
  20. package/lib/cjs/type/matrix/DenseMatrix.js +41 -45
  21. package/lib/cjs/type/matrix/SparseMatrix.js +39 -41
  22. package/lib/cjs/type/unit/Unit.js +2 -0
  23. package/lib/cjs/utils/lruQueue.js +2 -6
  24. package/lib/cjs/utils/map.js +1 -1
  25. package/lib/cjs/utils/snapshot.js +7 -1
  26. package/lib/cjs/version.js +1 -1
  27. package/lib/esm/core/function/typed.js +1 -1
  28. package/lib/esm/expression/node/OperatorNode.js +1 -3
  29. package/lib/esm/expression/operators.js +1 -3
  30. package/lib/esm/function/algebra/rationalize.js +1 -3
  31. package/lib/esm/function/algebra/sparse/csAmd.js +1 -3
  32. package/lib/esm/function/algebra/sparse/csLeaf.js +1 -3
  33. package/lib/esm/function/geometry/distance.js +13 -15
  34. package/lib/esm/function/matrix/eigs/complexEigs.js +2 -2
  35. package/lib/esm/type/unit/Unit.js +2 -0
  36. package/lib/esm/utils/lruQueue.js +2 -6
  37. package/lib/esm/version.js +1 -1
  38. package/package.json +13 -13
  39. package/types/index.d.ts +8 -8
package/HISTORY.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # History
2
2
 
3
+ # 2023-04-03 11.8.0
4
+
5
+ - Extended functions `fraction`, `bignumber`, and `number` with support for
6
+ units, see #2918 (#2926).
7
+ - Implemented aliases `amp` and `amps` for unit `ampere` (#2917).
8
+ Thanks @veggiesaurus.
9
+ - Improve TypeScript definitions of function `gcd` (#2922). Thanks @brunoSnoww.
10
+ - Fix #2923: improve docs of the function `distance` (#2924). Thanks @tmtron.
11
+
12
+
3
13
  # 2023-03-15, 11.7.0
4
14
 
5
15
  - Implement #2567: accept array as parameter for function `gcd` (#2878).
package/README.md CHANGED
@@ -11,34 +11,8 @@ Math.js is an extensive math library for JavaScript and Node.js. It features a f
11
11
  [![License](https://img.shields.io/github/license/josdejong/mathjs.svg)](https://github.com/josdejong/mathjs/blob/master/LICENSE)
12
12
  [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosdejong%2Fmathjs?ref=badge_shield)
13
13
  [![Codecov](https://codecov.io/gh/josdejong/mathjs/branch/develop/graph/badge.svg)](https://codecov.io/gh/josdejong/mathjs)
14
- [![Foresight](https://api-public.service.runforesight.com/api/v1/badge/test?repoId=13cb22bf-6cd5-4c4b-a9de-46081ac63ffb)](https://mathjs.app.runforesight.com/)
15
14
  [![Github Sponsor](https://camo.githubusercontent.com/7d9333b097b2f54a8957d126ab82937811489c9b75c3850f609985cf94cd29fe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2532302d53706f6e736f722532306d652532306f6e2532304769744875622d6f72616e6765)](https://github.com/sponsors/josdejong)
16
15
 
17
- ## Sponsors
18
-
19
- <table width="100%">
20
- <tr>
21
- <td>
22
- <img width="1000" height="0">
23
- <a href="https://www.runforesight.com/?utm_source=mathjs&utm_medium=sponsorship">
24
- <img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/power-up-github.png"
25
- alt="Foresight" width="260" align="right">
26
- </a>
27
-
28
- <h3>Foresight: Increase CI/CD Health & Test Performance</h3>
29
-
30
- <p>
31
- Foresight provides full visibility and deep insights into the health
32
- and performance of your tests and CI pipelines. Assess the risk of
33
- changes, resolve bottlenecks, reduce build times, and deliver
34
- high-quality software at speed with Foresight.
35
- </p>
36
-
37
- [Sign up now!](https://runforesight.com/?utm_source=mathjs&utm_medium=sponsorship)
38
- </td>
39
- </tr>
40
- </table>
41
-
42
16
  ## Features
43
17
 
44
18
  - Supports numbers, big numbers, complex numbers, fractions, units, strings, arrays, and matrices.