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
2729

0.8.1

Diff

Changelog

Source

2013-05-10, version 0.8.1

  • Fixed an npm warning when installing mathjs globally.
josdejong
published 0.8.0 •

Changelog

Source

2013-05-10, version 0.8.0

  • Implemented a command line interface. When math.js is installed globally via npm, the application is available on your system as 'mathjs'.
  • Implemented end keyword for index operator, and added support for implicit start and end (expressions like a(2,:) and b(2:end,3:end-1) are supported now).
  • Function math.eval is more flexible now: it supports variables and multi-line expressions.
  • Removed the read-only option from Parser and Scope.
  • Fixed non-working unequal operator != in the parser.
  • Fixed a bug in resizing matrices when replacing a subset.
  • Fixed a bug in updating a subset of a non-existing variable.
  • Minor bug fixes.
josdejong
published 0.7.2 •

Changelog

Source

2013-05-04, version 0.7.2

  • Fixed method unequal, which was checking for equality instead of inequality. Thanks @FJS2.
josdejong
published 0.7.1 •

Changelog

Source

2013-04-27, version 0.7.1

  • Improvements in the parser:
    • Added support for chained arguments.
    • Added support for chained variable assignments.
    • Added a function remove(name) to remove a variable from the parsers scope.
    • Renamed nodes for more consistency and to resolve naming conflicts.
    • Improved stringification of an expression tree.
    • Some simplifications in the code.
    • Minor bug fixes.
  • Fixed a bug in the parser, returning NaN instead of throwing an error for a number with multiple decimal separators like 2.3.4.
  • Fixed a bug in Workspace.insertAfter.
  • Fixed: math.js now works on IE 6-8 too.
josdejong
published 0.7.0 •

Changelog

Source

2013-04-20, version 0.7.0

  • Implemented method math.eval, which uses a readonly parser to evaluate expressions.
  • Implemented method xgcd (extended eucledian algorithm). Thanks Bart Kiers (@bkiers).
  • Improved math.format, which now rounds values to a maximum number of digits instead of decimals (default is 5 digits, for example math.format(math.pi) returns 3.1416).
  • Added examples.
  • Changed methods square and cube to evaluate matrices element wise (consistent with all other methods).
  • Changed second parameter of method import to an object with options.
  • Fixed method math.typeof on IE.
  • Minor bug fixes and improvements.
josdejong
published 0.6.0 •

Changelog

Source

2013-04-13, version 0.6.0

  • Implemented chained operations via method math.select(). For example math.select(3).add(4).subtract(2).done() will return 5.
  • Implemented methods gcd and lcm.
  • Implemented method Unit.in(unit), which creates a clone of the unit with a fixed representation. For example math.unit('5.08 cm').in('inch') will return a unit which string representation always is in inch, thus 2 inch. Unit.in(unit) is the same as method math.in(x, unit).
  • Implemented Unit.toNumber(unit), which returns the value of the unit when represented with given unit. For example math.unit('5.08 cm').toNumber('inch') returns the number 2, as the representation of the unit in inches has 2 as value.
  • Improved: method math.in(x, unit) now supports a string as second parameter, for example math.in(math.unit('5.08 cm'), 'inch').
  • Split the end user documentation of the parser functions from the source files.
  • Removed function help and the built-in documentation from the core library.
  • Fixed constant i being defined as -1i instead of 1i.
  • Minor bug fixes.
josdejong
published 0.5.0 •

Changelog

Source

2013-04-06, version 0.5.0

  • Implemented data types Matrix and Range.
  • Implemented matrix methods clone, concat, det, diag, eye, inv, ones, size, squeeze, transpose, zeros.
  • Implemented range operator :, and transpose operator ' in parser.
  • Changed: created construction methods for easy object creation for all data types and for the parser. For example, a complex value is now created with math.complex(2, 3) instead of new math.Complex(2, 3), and a parser is now created with math.parser() instead of new math.parser.Parser().
  • Changed: moved all data types under the namespace math.type, and moved the Parser, Workspace, etc. under the namespace math.expr.
  • Changed: changed operator precedence of the power operator:
    • it is now right associative instead of left associative like most scripting languages. So 2^3^4 is now calculated as 2^(3^4).
    • it has now higher precedence than unary minus most languages, thus -3^2 is now calculated as -(3^2).
  • Changed: renamed the parsers method 'put' into 'set'.
  • Fixed: method 'in' did not check for units to have the same base.
josdejong
published 0.4.0 •

Changelog

Source

2013-03-16, version 0.4.0

  • Implemented Array support for all methods.
  • Implemented Array support in the Parser.
  • Implemented method format.
  • Implemented parser for units, math.Unit.parse(str).
  • Improved parser for complex values math.Complex.parse(str);
  • Improved method help: it now evaluates the examples.
  • Fixed: a scoping issue with the Parser when defining functions.
  • Fixed: method 'typeof' was not working well with minified and mangled code.
  • Fixed: errors in determining the best prefix for a unit.
josdejong
published 0.3.0 •

Changelog

Source

2013-03-09, version 0.3.0

  • Implemented Workspace
  • Implemented methods cot, csc, sec.
  • Implemented Array support for methods with one parameter.
josdejong
published 0.2.0 •

Changelog

Source

2013-02-25, version 0.2.0

  • Parser, Scope, and expression tree with Nodes implemented.
  • Implemented method import which makes it easy to extend math.js.
  • Implemented methods arg, conj, cube, equal, factorial, im, largereq, log(x, base), log10, mod, re, sign, smallereq, square, unequal.
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