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.Changelog
2022-05-11, version 10.5.3
Changelog
2022-05-09, version 10.5.2
@types/mocha
defined in dependencies
instead of
devDependencies
, causing problems in projects that use a different version
of this dependency. Thanks @Kolahzary.examples/node_modules
folder from the npm package.SymbolNode.onUndefinedSymbol
and
FunctionNode.onUndefinedFunction
.Changelog
2022-05-02, version 10.5.1
round
, fix
,
floor
, ceil
, and nthRoot
, and improved the number only implementations
of those functions (#2531, #2539). Thanks @simlaticak and @gwhitney.end
not working when used inside
a sub-expression.resolve
(#2536). Thanks @mattvague.