Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mathjs

Package Overview
Dependencies
Maintainers
1
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mathjs - npm Package Versions

1
29

2.0.0

Diff

Changelog

Source

2015-07-28, version 2.0.0

  • Large internal refactoring:
    • performance improvements.
    • allows to create custom bundles
    • functions are composed using typed-function and are extensible
  • Implemented support for fractions, powered by the library fraction.js.
  • Implemented matrix LU decomposition with partial pivoting and a LU based linear equations solver (functions lup and lusolve). Thanks @rjbaucells.
  • Implemented a new configuration option predictable, which can be set to true in order to ensure predictable function output types.
  • Implemented function intersect. Thanks @kv-kunalvyas.
  • Implemented support for adding toTex properties to custom functions. Thanks @FSMaxB.
  • Implemented support for complex values to nthRoot. Thanks @gangachris.
  • Implemented util functions isInteger, isNegative, isNumeric, isPositive, and isZero.

breaking changes

  • String input is now converted to numbers by default for all functions.
  • Adding two strings will no longer concatenate them, but will convert the strings to numbers and add them.
  • Function index does no longer accept an array [start, end, step], but instead accepts an array with arbitrary index values. It also accepts a Range object as input.
  • Function typeof no longer returns lower case names, but now returns lower case names for primitives (like number, boolean, string), and upper-camel-case for non-primitives (like Array, Complex, Function).
  • Function import no longer supports a module name as argument. Instead, modules can be loaded using require: math.import(require('module-name')).
  • Function import has a new option silent to ignore errors, and throws errors on duplicates by default.
  • Method Node.compile() no longer needs math to be passed as argument.
  • Reintroduced method Node.eval([scope]).
  • Function sum now returns zero when input is an empty array. Thanks @FSMAxB.
  • The size of Arrays is no longer validated. Matrices will validate this on creation.
josdejong
published 1.7.1 •

Changelog

Source

2015-07-12, version 1.7.1

  • Fixed #397: Inaccuracies in nthRoot for very large values, and wrong results for very small values. (backported from v2)
  • Fixed #405: Parser throws error when defining a function in a multiline expression.
josdejong
published 1.7.0 •

Changelog

Source

2015-05-31, version 1.7.0

  • Implemented function quantileSeq and partitionSelect. Thanks @BigFav.
  • Implemented functions stirlingS2, bellNumbers, composition, and multinomial. Thanks @devanp92.
  • Improved the performance of median (see #373). Thanks @BigFav.
  • Extended the command line interface with a mode option to output either the expressions result, string representation, or tex representation. Thanks @FSMaxB.
  • Fixed #309: Function median mutating the input matrix. Thanks @FSMaxB.
  • Fixed Node.transform not recursing over replaced parts of the node tree (see #349).
  • Fixed #381: issue in docs of randomInt.
josdejong
published 1.6.0 •

Changelog

Source

2015-04-22, version 1.6.0

  • Improvements in toTex. Thanks @FSMaxB.
  • Fixed #328: abs(0 + 0i) evaluated to NaN.
  • Fixed not being able to override lazy loaded constants.
josdejong
published 1.5.2 •

Changelog

Source

2015-04-09, version 1.5.2

  • Fixed #313: parsed functions did not handle recursive calls correctly.
  • Fixed #251: binary prefix and SI prefix incorrectly used for byte. Now following SI standards (1 KiB == 1024 B, 1 kB == 1000 B).
  • Performance improvements in parsed functions.
josdejong
published 1.5.1 •

Changelog

Source

2015-04-08, version 1.5.1

  • Fixed #316: a bug in rounding values when formatting.
  • Fixed #317, #319: a bug in formatting negative values.
josdejong
published 1.5.0 •

Changelog

Source

2015-03-28, version 1.5.0

  • Added unit stone (6.35 kg).
  • Implemented support for sparse matrices. Thanks @rjbaucells.
  • Implemented BigNumber support for function atan2. Thanks @BigFav.
  • Implemented support for custom LaTeX representations. Thanks @FSMaxB.
  • Improvements and bug fixes in outputting parentheses in Node.toString and Node.toTex functions. Thanks @FSMaxB.
  • Fixed #291: function format sometimes returning exponential notation when it should return a fixed notation.
josdejong
published 1.4.0 •

Changelog

Source

2015-02-28, version 1.4.0

  • Implemented trigonometric functions: acosh, acoth, acsch, asech, asinh, atanh, acot, acsc, asec. Thanks @BigFav.
  • Added BigNumber support for functions: cot, csc, sec, coth, csch, sech. Thanks @BigFav.
  • Implemented support for serialization and deserialization of math.js data types.
  • Fixed the calculation of norm() and abs() for large complex numbers. Thanks @rjbaucells.
  • Fixed #281: improved formatting complex numbers. Round the real or imaginary part to zero when the difference is larger than the configured precision.
josdejong
published 1.3.0 •

Changelog

Source

2015-02-09, version 1.3.0

  • Implemented BigNumber implementations of most trigonometric functions: sin, cos, tan, asin, acos, atan, cosh, sinh, tanh. Thanks @BigFav.
  • Implemented function trace. Thanks @pcorey.
  • Faster loading of BigNumber configuration with a high precision by lazy loading constants like pi and e.
  • Fixed constants NaN and Infinity not being BigNumber objects when BigNumbers are configured.
  • Fixed missing parentheses in the toTex representation of function permutations.
  • Some minor fixes in the docs. Thanks @KenanY.
josdejong
published 1.2.0 •

Changelog

Source

2014-12-25, version 1.2.0

  • Support for bitwise operations bitAnd, bitNot, bitOr, bitXor, leftShift, rightArithShift, and rightLogShift. Thanks @BigFav.
  • Support for boolean operations and, not, or, xor. Thanks @BigFav.
  • Support for gamma function. Thanks @BigFav.
  • Converting a unit without value will now result in a unit with value, i.e. inch in cm will return 2.54 cm instead of cm.
  • Improved accuracy of sinh and complex cos and sin. Thanks @pavpanchekha.
  • Renamed function select to chain. The old function select will remain functional until math.js v2.0.
  • Upgraded to decimal.js v4.0.1 (BigNumber library).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc