Math.js currently does not allow importing constants being a BigNumber, Fraction, Matrix, or Array.
math.import({foo: math.bignumber(42)}) // error
This is caused by isSupportedType lacking checks for these data types, see code:
https://github.com/josdejong/mathjs/blob/master/lib/core/import.js#L227-L241
Math.js currently does not allow importing constants being a BigNumber, Fraction, Matrix, or Array.
This is caused by
isSupportedTypelacking checks for these data types, see code:https://github.com/josdejong/mathjs/blob/master/lib/core/import.js#L227-L241