mathjs 12.3.2 → 12.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/HISTORY.md +28 -0
- package/README.md +28 -0
- package/bin/cli.js +1 -1
- package/bin/repl.js +1 -1
- 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/entry/pureFunctionsAny.generated.js +1 -0
- package/lib/cjs/expression/node/ConstantNode.js +5 -3
- package/lib/cjs/expression/parse.js +8 -4
- package/lib/cjs/function/algebra/simplifyCore.js +3 -0
- package/lib/cjs/function/algebra/sparse/csAmd.js +4 -2
- package/lib/cjs/function/algebra/sparse/csChol.js +4 -2
- package/lib/cjs/function/algebra/sparse/csCounts.js +4 -2
- package/lib/cjs/function/algebra/sparse/csCumsum.js +4 -2
- package/lib/cjs/function/algebra/sparse/csDfs.js +4 -2
- package/lib/cjs/function/algebra/sparse/csEreach.js +4 -2
- package/lib/cjs/function/algebra/sparse/csEtree.js +4 -2
- package/lib/cjs/function/algebra/sparse/csFkeep.js +4 -2
- package/lib/cjs/function/algebra/sparse/csFlip.js +4 -2
- package/lib/cjs/function/algebra/sparse/csIpvec.js +4 -0
- package/lib/cjs/function/algebra/sparse/csLeaf.js +4 -2
- package/lib/cjs/function/algebra/sparse/csLu.js +4 -2
- package/lib/cjs/function/algebra/sparse/csMark.js +4 -2
- package/lib/cjs/function/algebra/sparse/csMarked.js +4 -2
- package/lib/cjs/function/algebra/sparse/csPermute.js +4 -2
- package/lib/cjs/function/algebra/sparse/csPost.js +4 -2
- package/lib/cjs/function/algebra/sparse/csReach.js +4 -2
- package/lib/cjs/function/algebra/sparse/csSpsolve.js +4 -2
- package/lib/cjs/function/algebra/sparse/csSqr.js +4 -2
- package/lib/cjs/function/algebra/sparse/csSymperm.js +4 -2
- package/lib/cjs/function/algebra/sparse/csTdfs.js +4 -2
- package/lib/cjs/function/algebra/sparse/csUnflip.js +4 -2
- package/lib/cjs/function/arithmetic/multiply.js +30 -29
- package/lib/cjs/function/arithmetic/round.js +38 -7
- package/lib/cjs/function/matrix/dot.js +3 -3
- package/lib/cjs/header.js +2 -2
- package/lib/cjs/type/matrix/utils/matAlgo01xDSid.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo02xDS0.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo03xDSf.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo04xSidSid.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo05xSfSf.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo06xS0S0.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo07xSSf.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo08xS0Sid.js +4 -4
- package/lib/cjs/type/matrix/utils/matAlgo09xS0Sf.js +4 -4
- package/lib/cjs/type/unit/Unit.js +6 -2
- package/lib/cjs/utils/map.js +2 -0
- package/lib/cjs/version.js +1 -1
- package/lib/esm/entry/pureFunctionsAny.generated.js +1 -0
- package/lib/esm/expression/node/ConstantNode.js +5 -3
- package/lib/esm/expression/parse.js +8 -4
- package/lib/esm/function/algebra/simplifyCore.js +3 -0
- package/lib/esm/function/algebra/sparse/csAmd.js +3 -2
- package/lib/esm/function/algebra/sparse/csChol.js +3 -2
- package/lib/esm/function/algebra/sparse/csCounts.js +3 -2
- package/lib/esm/function/algebra/sparse/csCumsum.js +4 -2
- package/lib/esm/function/algebra/sparse/csDfs.js +3 -2
- package/lib/esm/function/algebra/sparse/csEreach.js +3 -2
- package/lib/esm/function/algebra/sparse/csEtree.js +4 -2
- package/lib/esm/function/algebra/sparse/csFkeep.js +4 -2
- package/lib/esm/function/algebra/sparse/csFlip.js +4 -2
- package/lib/esm/function/algebra/sparse/csIpvec.js +4 -0
- package/lib/esm/function/algebra/sparse/csLeaf.js +4 -2
- package/lib/esm/function/algebra/sparse/csLu.js +4 -2
- package/lib/esm/function/algebra/sparse/csMark.js +4 -2
- package/lib/esm/function/algebra/sparse/csMarked.js +4 -2
- package/lib/esm/function/algebra/sparse/csPermute.js +4 -2
- package/lib/esm/function/algebra/sparse/csPost.js +3 -2
- package/lib/esm/function/algebra/sparse/csReach.js +4 -2
- package/lib/esm/function/algebra/sparse/csSpsolve.js +3 -2
- package/lib/esm/function/algebra/sparse/csSqr.js +3 -2
- package/lib/esm/function/algebra/sparse/csSymperm.js +3 -2
- package/lib/esm/function/algebra/sparse/csTdfs.js +4 -2
- package/lib/esm/function/algebra/sparse/csUnflip.js +3 -2
- package/lib/esm/function/arithmetic/multiply.js +30 -29
- package/lib/esm/function/arithmetic/round.js +38 -7
- package/lib/esm/function/matrix/dot.js +3 -3
- package/lib/esm/type/matrix/utils/matAlgo01xDSid.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo02xDS0.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo03xDSf.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo04xSidSid.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo05xSfSf.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo06xS0S0.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo07xSSf.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo08xS0Sid.js +4 -4
- package/lib/esm/type/matrix/utils/matAlgo09xS0Sf.js +4 -4
- package/lib/esm/type/unit/Unit.js +6 -2
- package/lib/esm/utils/map.js +2 -0
- package/lib/esm/version.js +1 -1
- package/package.json +16 -16
- package/types/index.d.ts +5 -5
package/HISTORY.md
CHANGED
@@ -1,6 +1,34 @@
|
|
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
|
+
|
17
|
+
# 2024-02-22, 12.4.0
|
18
|
+
|
19
|
+
- Feat: implement support for trailing commas in matrices (#3154, #2968).
|
20
|
+
Thanks @dvd101x.
|
21
|
+
- Feat: improve the performance of `multiply` a lot by adding matrix type
|
22
|
+
inferencing (#3149). Thanks @RandomGamingDev.
|
23
|
+
- Fix: #3100 function `round` not handling round-off errors (#3136).
|
24
|
+
Thanks @BrianFugate.
|
25
|
+
- Fix: `PartitionedMap` and `ObjectWrappingMap` missing a property
|
26
|
+
`Symbol.iterator`, causing problems when trying `new Map(scope)` (#3156).
|
27
|
+
- Fix: type definitions of function `mode` (#3153). Thanks @rich-martinez.
|
28
|
+
- Docs: describe method `getAllAsMap` in the Parser docs (#3158, #3157).
|
29
|
+
Thanks @dvd101x.
|
30
|
+
|
31
|
+
|
4
32
|
# 2024-02-08, 12.3.2
|
5
33
|
|
6
34
|
- Improved the performance of custom defined functions in the expression
|
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
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/
|
7
|
+
global.math = require('../lib/browser/math.js')
|
8
8
|
const repl = require('repl')
|
9
9
|
|
10
10
|
repl.start({ useGlobal: true })
|