Changelog
2022-09-13, 11.2.1
Changelog
2022-09-12, 11.2.0
isRelationalNode
(#2731). Thanks @isaacbyr.'largerEq'
and 'or'
in OperatorNodeMap
in the
TypeScript definitions. Thanks @ajinkyac03.pickRandom
. Thanks @mattvague.min
which means minutes
, not minim
(#2773).
Thanks @jasonhornsby.Changelog
2022-08-23, 11.1.0
examples/advanced/custom_loading.js
was broken.replacer
function missing in the TypeScript definitions.
Thanks @mattvague.typed-function@4.1.0
and decimal.js@10.4.0
.Changelog
2022-07-25, version 11.0.1
simplifyConstant
and simplifyCore
not having a return type defined.Changelog
2022-07-23, version 11.0.0
!!! BE CAREFUL: BREAKING CHANGES !!!
Breaking changes:
typed-function@3
, see josdejong/typed-function/HISTORY.md. Thanks @gwhitney. Most importantly:
any
.this
variable is no longer bound to the typed function itself.typed.types
, typed.conversions
, and typed.ignore
have been removed.typed.referTo
,
typed.referToSelf
, typed.addTypes
, typed.addConversions
.-
, +
, ~
),
and (b) the denominator is a constant. For example: formerly -1 / 2 x
was
interpreted as -1 / (2 * x)
and now it is interpreted as (-1 / 2) * x
.
Thanks @gwhitney.math.map(matrix, fn)
.
Thanks @gwhitney.add(2, x)
will now be simplified into 2 + x
(#2415, #2466).
Thanks @gwhitney.number
to string
(#2482).
Thanks @gwhitney.diff
return an empty matrix when the input contains
only one element (#2422).simplifyCore
logic (#2490, #2484, #2459).
The function simplifyCore
will no longer (partially) merge constants, that
behavior has been moved to simplifyConstant
. The combination of
simplifyConstant
and simplifyCore
is still close to the old behavior
of simplifyCore
, but there are some differences. To reproduce the same
behavior as the old simplifyCore
, you can use
math.simplify(expr, [math.simplifyCore, math.simplifyConstant])
.
Thanks to the refactoring, simplify
is more thorough in reducing constants.
Thanks @gwhitney.math.chain(3).max(4, 2).done()
will now throw
an error rather than return 4
, because the rest parameter of
math.max(...number)
has been split between the contents of the chain and
the arguments to the max call. Thanks @gwhitney.typeOf
now returns function
(lowercase) for a function instead
of Function
(#2560). Thanks @gwhitney.Non-breaking changes:
simplify
.
Thanks @laureen-m and @mattvague.createUnit
. Thanks @egziko.epsilon
when using BigNumbers.get
and set
in the docs.math.rationalize
in the docs (#2616). Thanks @nukisman.count
(#2622). Thanks @Hansuku.multiply
(#2623). Thanks @Windrill.Changelog
2022-06-28, version 10.6.4
factory
function, thanks @mattvague.Changelog
2022-06-24, version 10.6.3
factory
applied in v10.6.2
,
they give some complications.Changelog
2022-06-24, version 10.6.2
ParenthesisNode
. Thanks @mattvague.MathNodeCommon['type']
into a less
strict string, so it is possible to extend with new Node classes.
Thanks @mattvague.factory
function, thanks @mattvague.Changelog
2022-05-31, version 10.6.1
OperatorNode
: you can now define generic
types like OperatorNode<'+', 'add'>
. Thanks @mattvague.Changelog
2022-05-24, version 10.6.0
fft
and ifft
(#2540).
Thanks @HanchaiN.clone
and cloneDeep
(#2572). Thanks @mattvague.derivative
holding the expression not correctly
being converted when using .toTex()
(#2564). Thanks @mattvague.