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();
    • ๐Ÿ‘ 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 for Matrix, Complex, Unit, Range, and Selector to format using options.
      • Function format does only stringify values now, and has a new parameter precision to round to a specific number of digits.
      • Removed option math.options.precision, use math.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.
    • ๐Ÿ–จ Implemented a function print to interpolate values in a template string, this functionality was moved from the function format.
    • Implemented statistics function mean. Thanks Guillermo Indalecio Fernandez (@guillermobox).
    • Extended and changed max and min for multi dimensional matrices: they now return the maximum and minimum of the flattened array. An optional second argument dim allows to calculate the max or min for specified dimension.
    • 0๏ธโƒฃ Renamed option math.options.matrix.default to math.options.matrix.defaultType.
    • โœ‚ Removed support for comparing complex numbers in functions smaller, smallereq, larger, largereq. Complex numbers cannot be ordered.