[NEUTRAL] Update dependency mathjs to v12 - autoclosed #897
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:
^7.0.0
->^12.0.0
Release Notes
josdejong/mathjs (mathjs)
v12.4.3
Compare Source
operator modulus
%
. See #3189.quantileSeq
type definitions (#3198). Thanks @domdomegg.v12.4.2
Compare Source
isNaN
returnsfalse
forNaN
units in a matrix orarray (#3193). Thanks @lgerin.
add
andmultiply
to allowmore than two arguments.
traverse
returning void (#3177).Thanks @rohildshah.
v12.4.1
Compare Source
chart full screen (#3151). Thanks @dvd101x.
"true and true"
.toTex
wrongly returningInfinity
for large BigNumbers.math.Unit.deleteUnit
.pretty_printing_with_mathjax.html
(#3167). Thanks @SukkaW.v12.4.0
Compare Source
Thanks @dvd101x.
multiply
a lot by adding matrix typeinferencing (#3149). Thanks @RandomGamingDev.
round
not handling round-off errors (#3136).Thanks @BrianFugate.
PartitionedMap
andObjectWrappingMap
missing a propertySymbol.iterator
, causing problems when tryingnew Map(scope)
(#3156).mode
(#3153). Thanks @rich-martinez.getAllAsMap
in the Parser docs (#3158, #3157).Thanks @dvd101x.
v12.3.2
Compare Source
parser (#3150).
and
andor
inside a function definition.Regression since
v12.1.0
(#3150).v12.3.1
Compare Source
ArrayNode
,FunctionNode
,IndexNode
,OperatorNode
, andRelationalNode
(#3123). Thanks @sylee957.Thanks @dvd101x.
/* #__PURE__ */
annotations.
format
:precision
,wordSize
,lowerExp
,upperExp
. Support BigNumber valuesfor the option
wordSize
in the functionshex
,bin
, andoct
.hypot
(#3144).Thanks @silentmissile.
help(config)
altering the actualconfig
when evaluating theexamples.
nowadays.
v12.3.0
Compare Source
ronna
(R
),quetta
(Q
),ronto
(r
), andquecto
(q
) (#3113, #3112). Thanks @AlexEdgcomb.toSI()
wrongly convertingdegC
(#3118). Thanks @costerwi.v12.2.1
Compare Source
Node.toHTML
not accepting a customhandler
.v12.2.0
Compare Source
and
,or
,&
,|
(#3090, #3101,#2766). Thanks @smith120bh.
v12.1.0
Compare Source
round
with support for units (#2761, #3095).mod
with support for negative divisors in whenusing
BigNumber
orFraction
(#3087).derivative
mutates the input expression when it fails.v12.0.0
Compare Source
Breaking changes:
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 correspondingeigenvalue and vector.
NodeNext
module resolution (#3079, #2919).
MathJsStatic
is renamed toMathJsInstance
.FactoryDependencies
is deprecated, useMathJsFactory
instead, andimport dependency maps directly from the library.
.toTex()
output from:=
to=
(see#2980, #2987).
Features:
eigs
now has an option to turn off calculation of eigenvectors(#3057, #2180). Thanks @gwhitney.
Fixes:
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
print
in the parser (#3009).Thanks @dvd101x.
mod
sometimes giving wrong results due to internal round-offerrors (#3011). Thanks @praisennamonu1.
quantileSeq
, and fixed the embedded help (#3003).Thanks @dvd101x.
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
fraction.js@4.3.4
, 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.
decimal.js@10.4.1
.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.
typed-function@4.1.0
anddecimal.js@10.4.0
.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.v10.6.4
Compare Source
factory
function, thanks @mattvague.v10.6.3
Compare Source
factory
applied inv10.6.2
,they give some complications.
v10.6.2
Compare Source
ParenthesisNode
. Thanks @mattvague.MathNodeCommon['type']
into a lessstrict string, so it is possible to extend with new Node classes.
Thanks @mattvague.
factory
function, thanks @mattvague.v10.6.1
Compare Source
OperatorNode
: you can now define generictypes like
OperatorNode<'+', 'add'>
. Thanks @mattvague.v10.6.0
Compare Source
fft
andifft
(#2540).Thanks @HanchaiN.
Thanks @mattvague.
Thanks @mattvague.
clone
andcloneDeep
(#2572). Thanks @mattvague.
derivative
holding the expression not correctlybeing converted when using
.toTex()
(#2564). Thanks @mattvague.v10.5.3
Compare Source
vulnerabilities being reported on the examples and their dependencies.
v10.5.2
Compare Source
@types/mocha
defined independencies
instead ofdevDependencies
, causing problems in projects that use a different versionof this dependency. Thanks @Kolahzary.
examples/node_modules
folder from the npm package.SymbolNode.onUndefinedSymbol
andFunctionNode.onUndefinedFunction
.v10.5.1
Compare Source
round
,fix
,floor
,ceil
, andnthRoot
, and improved the number only implementationsof those functions (#2531, #2539). Thanks @simlaticak and @gwhitney.
end
not working when used insidea sub-expression.
(e.g., to avoid spurious duplicates in list). (#2543)
resolve
(#2536). Thanks @mattvague.v10.5.0
Compare Source
pinv
, Moore–Penrose inverse (#2521).Thanks @HanchaiN.
det
for integers by switching to the Bareiss algorithm:no more round-off errors for integer input (#2516). Thanks @HanchaiN.
(#2517). Thanks @HanchaiN.
lgamma
function (defined as log(gamma(z))) for number andComplex types. Supersedes #320. (#2417). Thanks @yifanwww.
sin(z)
for smallim(z)
(#2525). Thanks @gwhitney.ceil
(#2531). Thanks @simlaticakv10.4.3
Compare Source
base
in the number implementationof function
log
(#2515). Thanks @gwhitney.;
(#2512). Thanks @gwhitney.v10.4.2
Compare Source
Also disables getting the sign for units with an offset, which is ambiguous.
Thanks @gwhitney.
log()
for complex numbers in which the imaginarypart is much larger in absolute value than the real part, fixed in
complex.js@2.1.0
(#2505), thanks @gwhitney, @infusion.is being called as a function (#2494). Thanks @gwhitney.
forEach
example in embedded docs (#2507). Thanks @dvd101x.comparison tolerance. It was already being called this way, but was
silently ignoring the tolerance. Thanks @yifanwww.
v10.4.1
Compare Source
unit
(#2479).Thanks @SinanAkkoyun.
std
andvariance
(make dimension parameter optional, #2474). Thanks @NattapongSiri.
isMatrix
etc: Provide TypeScript definitions of "is" functions andmake them type guards. (#2432). Thanks @ChristopherChudzicki.
Thanks @gwhitney.
numbers (#2496). Thanks @gwhitney.
v10.4.0
Compare Source
simplifyCore
recurses over all binary nodes (#2462).Thanks @gwhitney.
std
andvariance
(#2455). Thanks @NattapongSiri.
cumsum
function generating cumulative sums of a listof values or a matrix. (#1870). Thanks @hjonasson.
Fraction.js
, having more strict input,only accepting an integer numerator and denominator. See #2427.
format
. (#2468) Thanks @abranhe.v10.3.0
Compare Source
symbolicEqual
(#2424). Thanks @gwhitney.in the expression parser (#2443). Thanks @gwhitney.
complexEigs
in which real-valued norms wereinadvertently being typed as complex numbers (#2445). Thanks @gwhitney.
map
(#2457).Thanks @gwhitney.
v10.2.0
Compare Source
simplify
,see #2399, #2391. Thanks @gwhitney.
leafCount
as a first simple measure of the complexityof an expression, see #2411, #2389. Thanks @gwhitney.
combinations
to return an integer result without roundingerrors for larger values, see #2414. Thanks @gwhitney.
rotate
missing in TypeScript definitions.Thanks @DIVYA-19.
math.unit
and add TypeScripttypes for
Unit.simplify
andUnit.units
(#2353). Thanks @joshhansen.simplify
(#2405). Thanks @gwhitney.Thanks @gwhitney.
v10.1.1
[Compare Source](https://togithub.com/josdejong/mathjs/compare/v10.
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.