mathjs v0.15.0 Release Notes
Release Date: 2013-10-26 // over 10 years ago-
- ๐ Math.js must be instantiated now, static calls are no longer supported. Usage:
- node.js:
var math = require('mathjs')();
- browser:
var math = mathjs();
- node.js:
- ๐ Implemented support for multiplying vectors with matrices.
- ๐ Improved number formatting:
- Function
format
now support various options: precision, different notations (fixed
,scientific
,auto
), and more. - Numbers are no longer rounded to 5 digits by default when formatted.
- Implemented a function
format
forMatrix
,Complex
,Unit
,Range
, andSelector
to format using options. - Function
format
does only stringify values now, and has a new parameterprecision
to round to a specific number of digits. - Removed option
math.options.precision
, usemath.format(value [, precision])
instead. - Fixed formatting numbers as scientific notation in some cases returning a zero digit left from the decimal point. (like "0.33333e8" rather than "3.3333e7"). Thanks @husayt.
- Function
- ๐จ Implemented a function
print
to interpolate values in a template string, this functionality was moved from the functionformat
. - Implemented statistics function
mean
. Thanks Guillermo Indalecio Fernandez (@guillermobox). - Extended and changed
max
andmin
for multi dimensional matrices: they now return the maximum and minimum of the flattened array. An optional second argumentdim
allows to calculate themax
ormin
for specified dimension. - 0๏ธโฃ Renamed option
math.options.matrix.default
tomath.options.matrix.defaultType
. - โ Removed support for comparing complex numbers in functions
smaller
,smallereq
,larger
,largereq
. Complex numbers cannot be ordered.
- ๐ Math.js must be instantiated now, static calls are no longer supported. Usage: