Update dependency mathjs to v11 - autoclosed #195
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
10.6.4
->11.12.0
Release Notes
josdejong/mathjs (mathjs)
v11.12.0
Compare Source
subtractScalar
(#3081, #2643), thanks @vrushaket.quotes (#3082).
clone
not throwing an error when passing an unsupportedtype like a function.
symbolicEqual
(#3035),thanks @juancodeaudio.
v11.11.2
Compare Source
in function
corr
(#3030). Thanks @vrushaket.max
inderivative
.to
ormod
as property name.v11.11.1
Compare Source
in function
corr
(#3030). Thanks @vrushaket.v11.11.0
Compare Source
corr
to calculate the correlation between two matrices(#3015, #2624). Thanks @vrushaket.
fraction.js
at version4.3.4
for now, see #3024, 3022,https://github.com/rawify/Fraction.js/issues/68s/68.
v11.10.1
Compare Source
[email protected]
, see #3022.lruQueue
using the globalhasOwnProperty
which may bepolluted.
erg
, and restrict prefixes of theunit
joule
to only long prefixes likekilo
and no short prefixeslike
k
(#3019). Thanks @costerwi.examples/browser/lorenz.html
that usessolveODE
and plots the result in a chart (#3018). Thanks @dvd101x.
v11.10.0
Compare Source
quantileSeq
with support for adimension
(#3002).Thanks @dvd101x.
example
a[[true, false, true]]
anda[a > 2]
(#2994). Thanks @dvd101x.zeta
(#2950, #2975, #2904). Thanks @Bobingstern.DenseMatrix
can mutate input arrays (#2991).v11.9.1
Compare Source
FunctionNode
andSymbolNode
allowingarbitrary code execution via
math.evaluate
. Thanks Harry Chen.new Function(...)
(CSP issue).v11.9.0
Compare Source
solveODE
(#2958). Thanks @dvd101x.zpk2tf
andfreqz
(#2988, #2969). Thanks @alykhaled.range
(#2997). Thanks @dvd101x.simplify
puts plus and minus signs next to each other (#2981).Thanks @MaybePixem.
Thanks @dvd101x.
trees.
Thanks @costerwi.
range
, reducing the amount of code (#2995).Thanks @dvd101x.
v11.8.2
Compare Source
min
,max
,mean
,median
,mode
,std
,sum
,prod
,variance
. Fixes a regressionintroduced in v11.8.1.
Unit.divide(Unit)
have a wrong return type.v11.8.1
Compare Source
distance
when calculate the distance froma point to a line (#2965). Thanks @Kiku-CN.
math.format
not working correctly forengineering
notation when usingBigNumbers and for
fixed
notation withprecision: 0
configured (#2956).Thanks @mgreminger.
cbrt
.docs (#2941). Thanks @dvd101x.
min
andmax
(#2955). Thanks @Maxim-Mazurok.v11.8.0
Compare Source
fraction
,bignumber
, andnumber
with support forunits, see #2918 (#2926).
amp
andamps
for unitampere
(#2917).Thanks @veggiesaurus.
gcd
(#2922). Thanks @brunoSnoww.distance
(#2924). Thanks @tmtron.v11.7.0
Compare Source
gcd
(#2878).Thanks @jakubriegel.
partitionSelect
,diff
,expm1
,round
,nthRoots
,sign
,rigthArithShift
,setIsSubset
,setSize
, and the docs about units.Thanks @tmtron.
reducing a lot of repetition (#2913). Thanks @brunoSnoww.
v11.6.0
Compare Source
operator:
add
,dotDivide
,dotMultiply
,dotPow
,gcd
,lcm
,mod
,nthRoot
,subtract
,bitAnd
,bitOr
,bitXor
,leftShift
,rightArithShift
,rightLogShift
,and
,or
,xor
,compare
,compareText
,equal
,larger
,largerEq
,smaller
,smallerEq
,unequal
,atan2
andto
(#2895, #2753). Thanks @dvd101x.unit
to allow creating aunit from a fraction or complex number.
sort
.column
androw
sometimes returning a scalar number.intersect
as optionalin the TypeScript definitions. Thanks @wodndb.
prob
(see #2902).to
,distance
,getMatrixDataType
,subset
, andmax
(see #2902).v11.5.1
Compare Source
rotationMatrix
(#2860).Thanks @brunoSnoww.
lusolve(LUDecomposition, ...)
(#2864).Thanks @evanmiller.
broken. Thanks @dvd101x.
pow
and some otherfunctions.
complex
for one numeric input (#2886),thanks @ariymarkowitz.
map()
andforEach()
(#2887), thanks @xiaohk.dotMultiply
,dotPow
anddotDivide
(#2890). Thanks @brunoSnoww.v11.5.0
Compare Source
simplify
rule matches in non-commutative contexts (#2841).Thanks @samueltlg.
(#2847). Thanks @samueltlg.
reshape
mutating the input in case of a matrix (see #2854).multiply()
withnumber[]
andnumber[][]
(#2852). Thanks @hfhchan.
v11.4.0
Compare Source
simplify
, making it easierfor example to describe unary minus (#1915). Thanks @thatcomputerguy0101.
schur
,sylvester
, andlyap
(#2646).Thanks @egidioln.
polynomialRoot
, and use it in a benchmark (#2839).Thanks @gwhitney.
non-commutative contexts (#2827). Thanks @samueltlg.
Node.traverse
andNode.forEach
, they do returnvoid
.v11.3.3
Compare Source
SparseMatrix
from aDenseMatrix
(#2836). Thanks @AlexandreAlvesDB.FunctionNode
, introducedin
v11.3.2
. See #2733. Thanks @dsteve.v11.3.2
Compare Source
kelvin
,rankine
,celsius
, andfahrenheit
(#2824). Thanks @jfeistv11.3.1
Compare Source
parameter names (#2819).
decimal.js
to version10.4.2
.v11.3.0
Compare Source
Node
in TypeScript (#2772).Note that this disables being able to narrow MathNodes by using the
.type
property. Use typeguards like
isOperatorNode(...)
instead (see #2810).Thanks @mattvague.
flatten()
cloning entries of array/Matrix (#2799).pinv
missing (#2804).Thanks @HanchaiN.
[email protected]
.v11.2.1
Compare Source
v11.2.0
Compare Source
isRelationalNode
(#2731). Thanks @isaacbyr.'largerEq'
and'or'
inOperatorNodeMap
in theTypeScript definitions. Thanks @ajinkyac03.
pickRandom
. Thanks @mattvague.min
which meansminutes
, notminim
(#2773).Thanks @jasonhornsby.
v11.1.0
Compare Source
Thanks @costerwi
examples/advanced/custom_loading.js
was broken.replacer
function missing in the TypeScript definitions.Thanks @mattvague.
[email protected]
and[email protected]
.v11.0.1
Compare Source
simplifyConstant
andsimplifyCore
not having a return type defined.
v11.0.0
Compare Source
!!! 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
, andtyped.ignore
have been removed.
typed.referTo
,typed.referToSelf
,typed.addTypes
,typed.addConversions
.when having a division followed by an implicit multiplication, the division
gets higher precedence over the implicit multiplication when (a) the
numerator is a constant with optionally a prefix operator (
-
,+
,~
),and (b) the denominator is a constant. For example: formerly
-1 / 2 x
wasinterpreted as
-1 / (2 * x)
and now it is interpreted as(-1 / 2) * x
.Thanks @gwhitney.
square, sqrt, cube, and cbrt to prevent confusion with standard matrix
functions (#2440, #2465). Instead, use
math.map(matrix, fn)
.Thanks @gwhitney.
add(2, x)
will now be simplified into2 + x
(#2415, #2466).Thanks @gwhitney.
number
tostring
(#2482).Thanks @gwhitney.
diff
return an empty matrix when the input containsonly one element (#2422).
simplifyCore
logic (#2490, #2484, #2459).The function
simplifyCore
will no longer (partially) merge constants, thatbehavior has been moved to
simplifyConstant
. The combination ofsimplifyConstant
andsimplifyCore
is still close to the old behaviorof
simplifyCore
, but there are some differences. To reproduce the samebehavior as the old
simplifyCore
, you can usemath.simplify(expr, [math.simplifyCore, math.simplifyConstant])
.Thanks to the refactoring,
simplify
is more thorough in reducing constants.Thanks @gwhitney.
(#2485, #2474). For example:
math.chain(3).max(4, 2).done()
will now throwan error rather than return
4
, because the rest parameter ofmath.max(...number)
has been split between the contents of the chain andthe arguments to the max call. Thanks @gwhitney.
typeOf
now returnsfunction
(lowercase) for a function insteadof
Function
(#2560). Thanks @gwhitney.Non-breaking changes:
simplify
.Thanks @laureen-m and @mattvague.
createUnit
. Thanks @egziko.epsilon
when using BigNumbers.
get
andset
in the docs.math.rationalize
in the docs (#2616). Thanks @nukisman.count
(#2622). Thanks @Hansuku.multiply
(#2623). Thanks @Windrill.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.