Changelog
2024-04-24, 12.4.2
isNaN
returns false
for NaN
units in a matrix or
array (#3193). Thanks @lgerin.add
and multiply
to allow
more than two arguments.traverse
returning void (#3177).
Thanks @rohildshah.Changelog
2024-03-13, 12.4.1
"true and true"
.toTex
wrongly returning Infinity
for large BigNumbers.math.Unit.deleteUnit
.pretty_printing_with_mathjax.html
(#3167). Thanks @SukkaW.Changelog
2024-02-22, 12.4.0
multiply
a lot by adding matrix type
inferencing (#3149). Thanks @RandomGamingDev.round
not handling round-off errors (#3136).
Thanks @BrianFugate.PartitionedMap
and ObjectWrappingMap
missing a property
Symbol.iterator
, causing problems when trying new Map(scope)
(#3156).mode
(#3153). Thanks @rich-martinez.getAllAsMap
in the Parser docs (#3158, #3157).
Thanks @dvd101x.Changelog
2024-02-08, 12.3.2
and
and or
inside a function definition.
Regression since v12.1.0
(#3150).Changelog
2024-02-01, 12.3.1
ArrayNode
, FunctionNode
,
IndexNode
, OperatorNode
, and RelationalNode
(#3123). Thanks @sylee957./* #__PURE__ */
annotations.format
:
precision
, wordSize
, lowerExp
, upperExp
. Support BigNumber values
for the option wordSize
in the functions hex
, bin
, and oct
.hypot
(#3144).
Thanks @silentmissile.help(config)
altering the actual config
when evaluating the
examples.Changelog
2024-01-12, 12.3.0
ronna
(R
), quetta
(Q
),
ronto
(r
), and quecto
(q
) (#3113, #3112). Thanks @AlexEdgcomb.toSI()
wrongly converting degC
(#3118). Thanks @costerwi.Changelog
2023-12-08, 12.2.0
and
, or
, &
, |
(#3090, #3101,
#2766). Thanks @smith120bh.Changelog
2023-11-17, 12.1.0
round
with support for units (#2761, #3095).mod
with support for negative divisors in when
using BigNumber
or Fraction
(#3087).derivative
mutates the input expression when it fails.Changelog
2023-10-26, 12.0.0
Breaking changes:
Fix #2879, #2927, #3014: change the confusing interface of eigs
(#3037),
thanks @gwhitney.
Before, functions eigs
returned an object:
{ values: MathCollection; vectors: MathCollection }
where vectors
was a 2d matrix of which the columns contained the vectors.
This is changed to eigs
returning an object:
{
values: MathCollection
eigenvectors: Array<{
value: number | BigNumber
vector: MathCollection
}>
}
Where eigenvectors
is an array containing an object with the corresponding
eigenvalue and vector.
Refactored the TypeScript type definitions to make them work with a NodeNext
module resolution (#3079, #2919).
MathJsStatic
is renamed to MathJsInstance
.FactoryDependencies
is deprecated, use MathJsFactory
instead, and
import dependency maps directly from the library.Change the assignment operator of .toTex()
output from :=
to =
(see
#2980, #2987).
Drop official support for Node.js 14 and 16.
Features:
eigs
now has an option to turn off calculation of eigenvectors
(#3057, #2180). Thanks @gwhitney.Fixes: