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:
Changelog
2023-10-26, 11.12.0
subtractScalar
(#3081, #2643), thanks @vrushaket.clone
not throwing an error when passing an unsupported
type like a function.symbolicEqual
(#3035),
thanks @juancodeaudio.Changelog
2023-10-11, 11.11.2
corr
(#3030). Thanks @vrushaket.max
in derivative
.to
or mod
as property name.Changelog
2023-09-20, 11.11.1
print
in the parser (#3009).
Thanks @dvd101x.mod
sometimes giving wrong results due to internal round-off
errors (#3011). Thanks @praisennamonu1.quantileSeq
, and fixed the embedded help (#3003).
Thanks @dvd101x.Changelog
2023-09-05, 11.11.0
corr
to calculate the correlation between two matrices
(#3015, #2624). Thanks @vrushaket.fraction.js
at version 4.3.4
for now, see #3024, 3022,
https://github.com/rawify/Fraction.js/issues/68.Changelog
2023-08-31, 11.10.1
fraction.js@4.3.4
, see #3022.lruQueue
using the global hasOwnProperty
which may be
polluted.erg
, and restrict prefixes of the
unit joule
to only long prefixes like kilo
and no short prefixes
like k
(#3019). Thanks @costerwi.examples/browser/lorenz.html
that uses solveODE
and plots the result in a chart (#3018). Thanks @dvd101x.Changelog
2023-08-23, 11.10.0
quantileSeq
with support for a dimension
(#3002).
Thanks @dvd101x.a[[true, false, true]]
and a[a > 2]
(#2994). Thanks @dvd101x.zeta
(#2950, #2975, #2904). Thanks @Bobingstern.DenseMatrix
can mutate input arrays (#2991).Changelog
2023-07-24, 11.9.1
FunctionNode
and SymbolNode
allowing
arbitrary code execution via math.evaluate
. Thanks Harry Chen.new Function(...)
(CSP issue).Changelog
2023-07-19, 11.9.0
solveODE
(#2958). Thanks @dvd101x.zpk2tf
and freqz
(#2988, #2969). Thanks @alykhaled.range
(#2997). Thanks @dvd101x.simplify
puts plus and minus signs next to each other (#2981).
Thanks @MaybePixem.range
, reducing the amount of code (#2995).
Thanks @dvd101x.