All Versions
243
Latest Version
Avg Release Cycle
27 days
Latest Release
496 days ago

Changelog History
Page 23

  • v0.14.0 Changes

    October 08, 2013
    • 0๏ธโƒฃ Introduced an option math.options.matrix.default which can have values matrix (default) or array. This option is used by the functions eye, ones, range, and zeros, to determine the type of matrix output.
    • Getting a subset of a matrix will automatically squeeze the resulting subset, setting a subset of a matrix will automatically unsqueeze the given subset.
    • โœ‚ Removed concatenation of nested arrays in the expression parser. You can now input nested arrays like in JavaScript. Matrices can be concatenated using the function concat.
    • ๐Ÿ“œ The matrix syntax [...] in the expression parser now creates 1 dimensional matrices by default. math.eval('[1,2,3,4]') returns a matrix with size [4], math.eval('[1,2;3,4]') returns a matrix with size [2,2].
    • ๐Ÿ“š Documentation is restructured and extended.
    • ๐Ÿ›  Fixed non working operator mod (modulus operator).
  • v0.13.0 Changes

    September 03, 2013
    • ๐Ÿ‘ Implemented support for booleans in all relevant functions.
    • Implemented functions map and forEach. Thanks Sebastien Piquemal (@sebpic).
    • All construction functions can be used to convert the type of variables, also element-wise for all elements in an Array or Matrix.
    • ๐Ÿ”„ Changed matrix indexes of the expression parser to one-based with the upper-bound included, similar to most math applications. Note that on a JavaScript level, math.js uses zero-based indexes with excluded upper-bound.
    • โœ‚ Removed support for scalars in the function subset, it now only supports Array, Matrix, and String.
    • โœ‚ Removed the functions get and set from a selector, they are a duplicate of the function subset.
    • Replaced functions get and set of Matrix with a single function subset.
    • Some moving around with code and namespaces:
      • Renamed namespace math.expr to math.expression (contains Scope, Parser, node objects).
      • Renamed namespace math.docs to math.expression.docs.
      • Moved math.expr.Selector to math.chaining.Selector.
    • ๐Ÿ›  Fixed some edge cases in functions lcm and xgcd.
  • v0.12.1 Changes

    August 22, 2013
    • ๐Ÿ›  Fixed outdated version of README.md.
    • ๐Ÿ›  Fixed a broken unit test.
  • v0.12.0 Changes

    August 22, 2013
    • Implemented functions random([min, max]), randomInt([min, max]), pickRandom(array). Thanks Sebastien Piquemal (@sebpic).
    • Implemented function distribution(name), generating a distribution object with functions random, randomInt, pickRandom for different distributions. Currently supporting uniform and normal.
    • ๐Ÿ”„ Changed the behavior of range to exclude the upper bound, so range(1, 4) now returns [1, 2, 3] instead of [1, 2, 3, 4].
    • ๐Ÿ”„ Changed the syntax of range, which is now range(start, end [, step]) instead of range(start, [step, ] end).
    • ๐Ÿ”„ Changed the behavior of ones and zeros to geometric dimensions, for example ones(3) returns a vector with length 3, filled with ones, and ones(3,3) returns a 2D array with size [3, 3].
    • ๐Ÿ”„ Changed the return type of ones and zeros: they now return an Array when arguments are Numbers or an Array, and returns a Matrix when the argument is a Matrix.
    • ๐Ÿ”„ Change matrix index notation in parser from round brackets to square brackets, for example A[0, 0:3].
    • โœ‚ Removed the feature introduced in v0.10.0 to automatically convert a complex value with an imaginary part equal to zero to a number.
    • ๐Ÿ›  Fixed zeros being formatted as null. Thanks @TimKraft.
  • v0.11.1 Changes

    July 23, 2013
    • ๐Ÿ›  Fixed missing development dependency
  • v0.11.0 Changes

    July 23, 2013
    • ๐Ÿ”„ Changed math.js from one-based to zero-based indexes.
      • Getting and setting matrix subset is now zero-based.
      • The dimension argument in function concat is now zero-based.
    • ๐Ÿ‘Œ Improvements in the string output of function help.
    • โž• Added constants true and false.
    • โž• Added constructor function boolean.
    • ๐Ÿ›  Fixed function select not accepting 0 as input. Thanks Elijah Manor (@elijahmanor).
    • ๐Ÿ“œ Parser now supports multiple unary minus operators after each other.
    • ๐Ÿ›  Fixed not accepting empty matrices like [[], []].
    • ๐Ÿ“š Some fixes in the end user documentation.
  • v0.10.0 Changes

    July 08, 2013
    • For complex calculations, all functions now automatically replace results having an imaginary part of zero with a Number. (2i * 2i now returns a Number -4 instead of a Complex -4 + 0i).
    • ๐Ÿ“œ Implemented support for injecting custom node handlers in the parser. Can be used for example to implement a node handler for plotting a graph.
    • ๐Ÿ“š Implemented end user documentation and a new help function.
    • Functions size and squeeze now return a Matrix instead of an Array as output on Matrix input.
    • โž• Added a constant tau (2 * pi). Thanks Zak Zibrat (@palimpsests).
    • ๐Ÿ“‡ Renamed function unaryminus to unary.
    • ๐Ÿ›  Fixed a bug in determining node dependencies in function assignments.
  • v0.9.1 Changes

    June 14, 2013
    • Implemented element-wise functions and operators: emultiply (x .* y), edivide (x ./ y), epow (x .^ y).
    • โž• Added constants Infinity and NaN.
    • โœ‚ Removed support for Workspace to keep the library focused on its core task.
    • ๐Ÿ›  Fixed a bug in the Complex constructor, not accepting NaN values.
    • ๐Ÿ›  Fixed division by zero in case of pure complex values.
    • ๐Ÿ›  Fixed a bug in function multiply multiplying a pure complex value with Infinity.
  • v0.9.0 Changes

    May 29, 2013
    • ๐Ÿ“œ Implemented function math.parse(expr [,scope]). Optional parameter scope can be a plain JavaScript Object containing variables.
    • Extended function math.expr(expr [, scope]) with an additional parameter scope, similar to parse. Example: math.eval('x^a', {x:3, a:2});.
    • Implemented function subset, to get or set a subset from a matrix, string, or other data types.
    • Implemented construction functions number and string (mainly useful inside the parser).
    • ๐Ÿ‘Œ Improved function det. Thanks Bryan Cuccioli (@bcuccioli).
    • ๐Ÿšš Moved the parse code from prototype math.expr.Parser to function math.parse, simplified Parser a little bit.
    • Strongly simplified the code of Scope and Workspace.
    • ๐Ÿ›  Fixed function mod for negative numerators, and added error messages in case of wrong input.
  • v0.8.2 Changes

    May 18, 2013
    • Extended the import function and some other minor improvements.
    • ๐Ÿ›  Fixed a bug in merging one dimensional vectors into a matrix.
    • ๐Ÿ›  Fixed a bug in function subtract, when subtracting a complex number from a real number.