Update dependency mathjs to v7#19
Open
staging-whitesource-for-github-com[bot] wants to merge 1 commit intomasterfrom
Open
Update dependency mathjs to v7#19staging-whitesource-for-github-com[bot] wants to merge 1 commit intomasterfrom
staging-whitesource-for-github-com[bot] wants to merge 1 commit intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
3.10.1→7.5.1By merging this PR, the issue #5 will be automatically resolved and closed:
Release Notes
josdejong/mathjs (mathjs)
v7.5.1Compare Source
math.config. Thanks Snyk.v7.5.0Compare Source
pickRandomnow allows randomly picking elements from matriceswith 2 or more dimensions instead of only from a vector, see #1974.
Thanks @KonradLinkowski.
v7.4.0Compare Source
ceil,floor,and
fix, similar toround, see #1967, #1901. Thanks @rnd-debug.rotationMatrix, see #1160, #1984. Thanks @rnd-debug.sqrtmwith a matrix havingmore than two dimensions. Thanks @KonradLinkowski.
decimal.jsto10.2.1.v7.3.0Compare Source
usolveAllandlsolveAll, see #1916. Thanks @m93a.stdandvariance, see #1950.Thanks @rnd-debug.
expression parser, and implemented functions
bin,oct, andhexforformatting. Thanks @clnhlzmn.
BigNumberandFraction. Thanks @ovk.v7.2.0Compare Source
diff, see #1634, #1920. Thanks @Veeloxfire.norm.Thanks @rnd-debug.
v7.1.0Compare Source
new in
typed-function@2.0.0. This fixes #1885: functions which whereextended with a new data type did not always work. Thanks @nickewing.
math.expression.node.*instead ofmath.*.v7.0.2Compare Source
DenseMatrix.resizeandSparseMatrix.resizeacceptDenseMatrixandSparseMatrixas inputs too, not onlyArray.sum,prod,min, andmaxnot throwing a conversion errorwhen passing a single string, like
sum("abc").v7.0.1Compare Source
eigs. Thanks @Lazersmoke.math.nthRoots(x).v7.0.0Compare Source
Breaking changes:
dotproduct of complex values.The first argument is now conjugated. See #1761. Thanks @m93a.
To upgrade smoothly from v5 to v7 or higher, upgrade to v6 first
and resolve all deprecation warnings.
v6.6.5Compare Source
Infinitycannot be serialized and deserialized.This is solved now with a new
math.replacerfunction used asJSON.stringify(value, math.replacer).Infinitynot turned into the latex symbol\\infty.v6.6.4Compare Source
v6.6.3Compare Source
format,sometimes resulting in needless trailing zeros.
.toNumber()and.toNumeric()not working on aunitless unit.
mod,and,not,or,xor,to,inas object keys. Thanks @Veeloxfire.eigsnot usingconfig.epsilon.v6.6.2Compare Source
eigsnot calculating with BigNumber precisionwhen input contains BigNumbers.
prepare, so you can use the librarydirectly when installing directly from git. See #1751. Thanks @cinderblock.
v6.6.1Compare Source
a/(b/c). Thanks @dbramwell.rowandcolumn.v6.6.0Compare Source
eigs, see #1705, #542 #1175. Thanks @arkajitmandal.DenseMatrixusingfromJSON.DenseMatrix.mapcopying the size and datatype from the originalmatrix instead of checking the returned dimensions and type of the callback.
^1.2.3) to allow downstream updateswithout having to await a new release of mathjs.
v6.5.0Compare Source
baseNameoption forcreateUnit, see #1707.Thanks @ericman314.
v6.4.0Compare Source
dimensionwith support for n-dimensional points.Thanks @Veeloxfire.
v6.3.0Compare Source
factorialforBigNumberup to a factor two,see #1687. Thanks @kmdrGroch.
v6.2.5Compare Source
IndexNodeusing a hardcoded, one-based implementation ofindex,making it impossible to instantiate a zero-based version of the expression
parser. See #782.
v6.2.4Compare Source
thanks @kevinkelleher12 and @harrysarson.
sign(0)returns complex NaN.Thanks @harrysarson.
v6.2.3Compare Source
meannot working for units. Thanks @clintonc.minlisted twice in the "See also" section of theembedded docs of function
std.isPrime, see #1641. Thanks @arguiot.v6.2.2Compare Source
mapandclonenot copying thedotNotationproperty ofIndexNode. Thanks @rianmcguire.toHTML. Thanks @maytanthegeek.isNumeric.0.v6.2.1Compare Source
formatnot working for expressions.v6.2.0Compare Source
combinationsWithRep. Thanks @waseemyusuf.bitandbyte.bitandbyteinstead ofbitsandbytes.typed-function@1.1.1.v6.1.0Compare Source
combinationsWithRep(see #1329). Thanks @waseemyusuf.v6.0.4Compare Source
old browsers. Thanks @mockdeep for helping to find a solution.
v6.0.3Compare Source
unpkgandjsdelivrfields in package.json pointing to UMD build.Thanks @tmcw.
outer user defined function.
v6.0.2Compare Source
import(regression since v6.0.0).
v6.0.1Compare Source
evaluateandparsemissing in generated docs.v6.0.0Compare Source
!!! BE CAREFUL: BREAKING CHANGES !!!
Most notable changes
Full support for ES modules. Support for tree-shaking out of the box.
Load all functions:
Use a few functions:
Load all functions with custom configuration:
Load a few functions with custom configuration:
Support for lightweight, number-only implementations of all functions:
New dependency injection solution used under the hood.
Breaking changes
Node 6 is no longer supported.
Functions
configandimportare not available anymore in the globalcontext:
Instead, create your own mathjs instance and pass config and imports
there:
Renamed function
typeoftotypeOf,vartovariance,and
evaltoevaluate. (the old function names are reserved keywordswhich can not be used as a variable name).
Deprecated the
Matrix.storagefunction. Usemath.matrixinstead to createa matrix.
Deprecated function
math.expression.parse, usemath.parseinstead.Was used before for example to customize supported characters by replacing
math.parse.isAlpha.Moved all classes like
math.type.Unitandmath.expression.Parsertomath.Unitandmath.Parserrespectively.Fixed #1428: transform iterating over replaced nodes. New behavior
is that it stops iterating when a node is replaced.
Dropped support for renaming factory functions when importing them.
Dropped fake BigNumber support of function
erf.Removed all index.js files used to load specific functions instead of all, like:
Individual functions are now loaded simply like:
To set a specific configuration on the functions:
See example
advanced/custom_loading.js.Updated the values of all physical units to their latest official values.
See #1529. Thanks @ericman314.
Non breaking changes
t,tonne,bel,decibel,dB, and prefixesfor
candela. Thanks @mcvladthegoat.epsilonsetting being applied globally to Complex numbers.math.simplify('add(2, 3)')throwing an error.lowerExpandupperExpand after that rounded the value instead of the other way around.
'use strict'in every file, not needed anymore.v5.10.3Compare Source
delbeing a dependency instead of devDependency.v5.10.2Compare Source
the build folder of a util file
typeOf.jsandtypeof.js.Solved by properly cleaning all build folders before building.
v5.10.1Compare Source
engineeringcan give wrong resultswhen the value has less significant digits than the number of digits in
the output.
v5.10.0Compare Source
lib/header.jsnot having filled in date and version. Thanks @kevjin.decimal.js@10.2.0, fixing an issue on node.js 12.v5.9.0Compare Source
rowandcolumn(see #1413). Thanks @SzechuanSage.engineeringnotation of functionformatnot availablefor
BigNumber.node.toHTML()not correct for unary operators likefactorial.v5.8.0Compare Source
apply. Thanks @bnlcas.dimensionargument tostdandvar.Thanks @bnlcas.
v5.7.0Compare Source
pow()inderivative. Thanks @sam-19.(Fixes #1429, see also #1434, #1432). Thanks @ericman314.
v5.6.0Compare Source
containing "not".
v5.5.0Compare Source
mapandforEachofSparseMatrixnot workingcorrectly when indexes are unordered.
v5.4.2Compare Source
math.formatnot working for BigNumbers with a precision above1025 digits (see #1385). Thanks @ericman314.
RelationalNode. Thanks @rianmcguire.map,forEach,traverse, andtransformof
FunctionNode.v5.4.1Compare Source
v5.4.0Compare Source
specific axis. Thanks @bnlcas.
Unit.formatandUnit.toString,making changes to the unit on execution. Thanks @ericman314.
v5.3.1Compare Source
mminsteadof
m. Thanks @ericman314.v5.3.0Compare Source
hasNumericValue. Thanks @Sathish-kumar-Subramani.math.formatnot working correctly with{ precision: 0 }.Thanks @dkenul.
v5.2.3Compare Source
escape-latexgiving issues in somespecific cases. Thanks @dangmai.
bitNot, see #1299. Thanks @FSMaxB.pownot supporting inputspow(Unit, BigNumber).escape-latex@1.2.0)v5.2.2Compare Source
user-defined units. Thanks @ericman314.
v5.2.1Compare Source
rodbeing defined as5.02921instead of5.0292.Thanks @ericman314.
fraction.js@4.0.10)@babel/core@7.1.2,nyc@13.1.0,webpack@4.21.0).v5.2.0Compare Source
Ah(#3617). Thanks @adrfantini.numanddenfunctions returning the parts ofa fraction (#3605). Thanks @AnslemHack.
Thanks @NilsDietrich.
via the expression parser. Thanks @CykuTW for finding and reporting them.
v5.1.2Compare Source
parse. Thanks @mathiasvr.subset.quantileSeqhas inconsistent return.number.
fraction.js@4.0.9)babel@7,karma-webpack@3.0.4,nyc@13.0.1,standard@12.0.0,uglify-js@3.4.9,webpack@4.17.2)v5.1.1Compare Source
compareNatural(#3632). Thanks @Dheemanth07.Thanks @gwhitney.
and add History (#3630). Thanks @Anadian.
setDistinctsorts the elements (see #3602).v5.1.0Compare Source
isFiniteandisBounded(#3554, #3553).Thanks @gwhitney.
bernoullito calculate Bernoulli numbers (#3551).Thanks @gwhitney.
object?.key(#3547).Thanks @NilsDietrich.
double dot
?.., allow optional function calls, throw errors on invalid usesof
?.(#3585). Thanks @AnslemHack.(#3567). Thanks @richardt-cla.
isInteger(#3575).Thanks @gwhitney.
v5.0.4Compare Source
factorialfor numbers.This improves performance of functions
gamma,permutation, andcombinationtoo. See #1170. Thanks @honeybar.reshape, thanks to afriend of @honeybar.
v5.0.3Compare Source
addandsubtract) not workingwith matrices having a
datatypedefined.formatwithengineeringnotation in outputtingthe correct number of significant figures. Thanks @ericman314.
it by importing a factory function with the same name.
parseinto a functional approach.Thanks @harrysarson.
decimal.jsimport to ES6. Thanks @weinshel.v5.0.2Compare Source
simplifyunnecessarily replacing implicit multiplication withexplicit multiplication.
rationalizethrowing exceptions for some input with decimals.Thanks @maruta.
rawArgsfunctions.add_new_datatypes.Thanks @ChristopherChudzicki.
typed-function@1.0.4,complex.js@2.0.11).babel-loader@7.1.5,uglify-js@3.4.3,expr-eval@1.2.2,webpack@4.15.1).v5.0.1Compare Source
kerma,uglify-js,webpack).v5.0.0Compare Source
!!! BE CAREFUL: BREAKING CHANGES !!!
modulus operator (that both use symbol
%), and raise the former (#3432).Thanks @kiprobinsonknack.
#3455). Thanks @gwhitney and @Delaney.
Thanks @dvd101x.
%as unary only when not followed by a term (#3505).Thanks @gwhitney.
sizeto always return anArray(#3535).SparseMatrix(#3536).v4.4.2Compare Source
det. Thanks @ericman314.compareNaturaland clarified the behavior for strings.inv(sincev4.4.1).Thanks @ericman314.
v4.4.1Compare Source
invwhen dealing with values close to zero.Thanks @ericman314.
v4.4.0Compare Source
flatten(#3400). Thanks @dvd101x.mapandforEach(#3409).Thanks @dvd101x.
nthRootslatex function template string (#3427).Thanks @aitee.
@babel/runtime.v4.3.0Compare Source
flatten(#3354). Thanks @dvd101x.DenseMatrixSymbol.iterator (#3395).Thanks @dvd101x.
mapandforEach(#3399).Thanks @dvd101x.
argument types (#3394). Thanks @dvd101x.
(#3397). Thanks @porst17.
multiply(#3408). Thanks @orelbn.math.isNaNfor consistentmaxandminresults(#3389). Thanks @orelbn.
v4.2.2Compare Source
see #1098. Thanks @jackschmidt.
escape-latex@1.0.3.v4.2.1Compare Source
@lambdatest/node-tunnel.v4.2.0Compare Source
applytomapSlices(#3357). Functionapplyis still available but is now marked deprecated. Thanks @gwhitney.(#3369). Thanks @gwhitney.
Thanks @gwhitney.
and @gwhitney.
v4.1.2Compare Source
decades,centuries,and
millennia.decadeandwatthaving a wrong name when stringifying.Thanks @ericman314.
v4.1.1Compare Source
minus like
math.derivative('-x', 'x').v4.1.0Compare Source
bigintsupport in functionslog,log2,log10,larger,smaller,max,min(#3345). Thanks @gwhitney.bigint(#3348).randomInt()not working (#3345).signin the embedded docs (#3338).Thanks @witer33.
v4.0.1Compare Source
Fractiontype from thefraction.jslibrary instead ofusing a custom interface (#3330). Thanks @fchu.
v4.0.0Compare Source
!!! BE CAREFUL: BREAKING CHANGES !!!
fraction.js@5, usingbigintunder the hood (#3283).Unitin functionsceil,floor, andfix.Possible breaking changes in the type definitions of arrays and matrices
due to the introduction of generics (#3269). Thanks @orelbn.
log(x: Fraction, base: Fraction).%(mod) being higher than*and/(#3311).Thanks @nkumawat34.
math.import(...)from overriding units unless youspecify
{ override: true }(#3225).dotDivide,dotPow,bitXor,xor,equal,larger,largerEq,smaller,smallerEq, andunequalreturn a sparsematrix when the input is two sparse matrices (#3307). Thanks @Aakash-Rana.
v3.20.2Compare Source
typed-function@0.10.7(bug-fix release).implicitnot being copied from anOperatorNodewhen applying function
map. Thanks @HarrySarson.in
toTex(). Thanks @FSMaxB.v3.20.1Compare Source
simplifyCorefailing in some cases with parentheses.Thanks @firepick1.
v3.20.0Compare Source
+and*inderivative. Thanks @HarrySarson. See #1002.simplifyevalution ofsimplifyof functions with more than twoarguments wrongly:
simplify('f(x, y, z)') evaluated tof(f(x, y), z)instead off(x, y, z)`. Thanks @joelhoover.simplifythrowing an error in some cases when simplifying unknownfunctions, for example
simplify('f(4)'). Thanks @joelhoover.simplifywrongly simplifing some expressions containing unaryminus, like
0 - -x. Thanks @joelhoover.xor. Thanks @denisx.v3.19.0Compare Source
distanceandintersectwith support for BigNumbers.Thanks @ovk.
simplify: added a rule that allows combiningof like terms in embedded quantities. Thanks @joelhoover.
v3.18.1Compare Source
Thanks @firepick1.
v3.18.0Compare Source
Implemented function
rationalize. Thanks @paulobuchsbaum.Upgraded dependencies: