mathjs 12.4.0 → 12.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/HISTORY.md +13 -0
  2. package/README.md +28 -0
  3. package/bin/cli.js +1 -1
  4. package/bin/repl.js +1 -1
  5. package/lib/browser/math.js +1 -1
  6. package/lib/browser/math.js.LICENSE.txt +2 -2
  7. package/lib/browser/math.js.map +1 -1
  8. package/lib/cjs/expression/node/ConstantNode.js +5 -3
  9. package/lib/cjs/function/algebra/simplifyCore.js +3 -0
  10. package/lib/cjs/function/algebra/sparse/csAmd.js +4 -2
  11. package/lib/cjs/function/algebra/sparse/csChol.js +4 -2
  12. package/lib/cjs/function/algebra/sparse/csCounts.js +4 -2
  13. package/lib/cjs/function/algebra/sparse/csCumsum.js +4 -2
  14. package/lib/cjs/function/algebra/sparse/csDfs.js +4 -2
  15. package/lib/cjs/function/algebra/sparse/csEreach.js +4 -2
  16. package/lib/cjs/function/algebra/sparse/csEtree.js +4 -2
  17. package/lib/cjs/function/algebra/sparse/csFkeep.js +4 -2
  18. package/lib/cjs/function/algebra/sparse/csFlip.js +4 -2
  19. package/lib/cjs/function/algebra/sparse/csIpvec.js +4 -0
  20. package/lib/cjs/function/algebra/sparse/csLeaf.js +4 -2
  21. package/lib/cjs/function/algebra/sparse/csLu.js +4 -2
  22. package/lib/cjs/function/algebra/sparse/csMark.js +4 -2
  23. package/lib/cjs/function/algebra/sparse/csMarked.js +4 -2
  24. package/lib/cjs/function/algebra/sparse/csPermute.js +4 -2
  25. package/lib/cjs/function/algebra/sparse/csPost.js +4 -2
  26. package/lib/cjs/function/algebra/sparse/csReach.js +4 -2
  27. package/lib/cjs/function/algebra/sparse/csSpsolve.js +4 -2
  28. package/lib/cjs/function/algebra/sparse/csSqr.js +4 -2
  29. package/lib/cjs/function/algebra/sparse/csSymperm.js +4 -2
  30. package/lib/cjs/function/algebra/sparse/csTdfs.js +4 -2
  31. package/lib/cjs/function/algebra/sparse/csUnflip.js +4 -2
  32. package/lib/cjs/header.js +2 -2
  33. package/lib/cjs/type/unit/Unit.js +6 -2
  34. package/lib/cjs/version.js +1 -1
  35. package/lib/esm/expression/node/ConstantNode.js +5 -3
  36. package/lib/esm/function/algebra/simplifyCore.js +3 -0
  37. package/lib/esm/function/algebra/sparse/csAmd.js +3 -2
  38. package/lib/esm/function/algebra/sparse/csChol.js +3 -2
  39. package/lib/esm/function/algebra/sparse/csCounts.js +3 -2
  40. package/lib/esm/function/algebra/sparse/csCumsum.js +4 -2
  41. package/lib/esm/function/algebra/sparse/csDfs.js +3 -2
  42. package/lib/esm/function/algebra/sparse/csEreach.js +3 -2
  43. package/lib/esm/function/algebra/sparse/csEtree.js +4 -2
  44. package/lib/esm/function/algebra/sparse/csFkeep.js +4 -2
  45. package/lib/esm/function/algebra/sparse/csFlip.js +4 -2
  46. package/lib/esm/function/algebra/sparse/csIpvec.js +4 -0
  47. package/lib/esm/function/algebra/sparse/csLeaf.js +4 -2
  48. package/lib/esm/function/algebra/sparse/csLu.js +4 -2
  49. package/lib/esm/function/algebra/sparse/csMark.js +4 -2
  50. package/lib/esm/function/algebra/sparse/csMarked.js +4 -2
  51. package/lib/esm/function/algebra/sparse/csPermute.js +4 -2
  52. package/lib/esm/function/algebra/sparse/csPost.js +3 -2
  53. package/lib/esm/function/algebra/sparse/csReach.js +4 -2
  54. package/lib/esm/function/algebra/sparse/csSpsolve.js +3 -2
  55. package/lib/esm/function/algebra/sparse/csSqr.js +3 -2
  56. package/lib/esm/function/algebra/sparse/csSymperm.js +3 -2
  57. package/lib/esm/function/algebra/sparse/csTdfs.js +4 -2
  58. package/lib/esm/function/algebra/sparse/csUnflip.js +3 -2
  59. package/lib/esm/type/unit/Unit.js +6 -2
  60. package/lib/esm/version.js +1 -1
  61. package/package.json +13 -13
package/HISTORY.md CHANGED
@@ -1,6 +1,19 @@
1
1
  # History
2
2
 
3
3
 
4
+ # 2024-03-13, 12.4.1
5
+
6
+ - Docs: implement an interactive version of the Lorenz example, and show the
7
+ chart full screen (#3151). Thanks @dvd101x.
8
+ - Fix #3172: simplify `"true and true"`.
9
+ - Fix #3163: `toTex` wrongly returning `Infinity` for large BigNumbers.
10
+ - Fix #3162: add license information about CSParse (#3164).
11
+ - Fix #3175: cannot delete units using `math.Unit.deleteUnit`.
12
+ - Fix: faster startup time of the CLI and REPL by loading the bundle.
13
+ - Fix: remove using polyfill.io inside the example
14
+ `pretty_printing_with_mathjax.html` (#3167). Thanks @SukkaW.
15
+
16
+
4
17
  # 2024-02-22, 12.4.0
5
18
 
6
19
  - Feat: implement support for trailing commas in matrices (#3154, #2968).
package/README.md CHANGED
@@ -195,6 +195,9 @@ Thanks Github Actions and BrowserStack for the generous free hosting of this ope
195
195
 
196
196
  ## License
197
197
 
198
+ mathjs is published under the Apache 2.0 license:
199
+
200
+ ```
198
201
  Copyright (C) 2013-2024 Jos de Jong <wjosdejong@gmail.com>
199
202
 
200
203
  Licensed under the Apache License, Version 2.0 (the "License");
@@ -208,3 +211,28 @@ distributed under the License is distributed on an "AS IS" BASIS,
208
211
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
209
212
  See the License for the specific language governing permissions and
210
213
  limitations under the License.
214
+ ```
215
+
216
+ mathjs contains a JavaScript port of the [CSparse](https://github.com/DrTimothyAldenDavis/SuiteSparse/tree/dev/CSparse/Source) library, published under the LGPL-2.1+ license:
217
+
218
+ ```
219
+ CSparse: a Concise Sparse matrix package.
220
+ Copyright (c) 2006, Timothy A. Davis.
221
+ http://www.suitesparse.com
222
+
223
+ --------------------------------------------------------------------------------
224
+
225
+ CSparse is free software; you can redistribute it and/or
226
+ modify it under the terms of the GNU Lesser General Public
227
+ License as published by the Free Software Foundation; either
228
+ version 2.1 of the License, or (at your option) any later version.
229
+
230
+ CSparse is distributed in the hope that it will be useful,
231
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
232
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
233
+ Lesser General Public License for more details.
234
+
235
+ You should have received a copy of the GNU Lesser General Public
236
+ License along with this Module; if not, write to the Free Software
237
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
238
+ ```
package/bin/cli.js CHANGED
@@ -59,7 +59,7 @@ const PRECISION = 14 // decimals
59
59
  * @return {*}
60
60
  */
61
61
  function getMath () {
62
- return require('../lib/cjs/defaultInstance.js').default
62
+ return require('../lib/browser/math.js')
63
63
  }
64
64
 
65
65
  /**
package/bin/repl.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * This simply preloads mathjs and drops you into a REPL to
5
5
  * help interactive debugging.
6
6
  **/
7
- global.math = require('../lib/cjs/defaultInstance.js').default
7
+ global.math = require('../lib/browser/math.js')
8
8
  const repl = require('repl')
9
9
 
10
10
  repl.start({ useGlobal: true })