Changelog
2015-08-30, version 2.2.0
m^2
and s^-1
) now output with the best prefix.abs
, cube
, sign
, sqrt
, square
.
Thanks @ericman314.catalan
(Combinatorics). Thanks @devanp92.canDefineProperty
check to return false in case of IE8, which
has a broken implementation of defineProperty
. Thanks @golmansax.to
not working in case of a simplified unit.lup
, also affecting lusolve
.Changelog
2015-08-12, version 2.1.1
speedOfLight
, molarMassC12
,
and magneticFluxQuantum
. Thanks @ericman314 for finding two of them.Changelog
2015-08-11, version 2.1.0
110 km/h in m/s
). Thanks @ericman314.speedOfLight
, gravity
, etc.kldivergence
(Kullback-Leibler divergence).
Thanks @saromanov.mode
. Thanks @kv-kunalvyas.Unit.parse
and Complex.parse
now throw an Error
instead of returning null when passing invalid input.Changelog
2015-07-29, version 2.0.1
Changelog
2015-07-28, version 2.0.0
typed-function
and are extensiblefraction.js
.lup
and lusolve
). Thanks @rjbaucells.predictable
, which can be set to
true in order to ensure predictable function output types.intersect
. Thanks @kv-kunalvyas.toTex
properties to custom functions.
Thanks @FSMaxB.nthRoot
. Thanks @gangachris.isInteger
, isNegative
, isNumeric
,
isPositive
, and isZero
.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.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
).import
no longer supports a module name as argument. Instead,
modules can be loaded using require: math.import(require('module-name'))
.import
has a new option silent
to ignore errors, and throws
errors on duplicates by default.Node.compile()
no longer needs math
to be passed as argument.Node.eval([scope])
.sum
now returns zero when input is an empty array. Thanks @FSMAxB.Changelog
2015-07-12, version 1.7.1
Changelog
2015-05-31, version 1.7.0
quantileSeq
and partitionSelect
. Thanks @BigFav.stirlingS2
, bellNumbers
, composition
, and
multinomial
. Thanks @devanp92.median
(see #373). Thanks @BigFav.mode
option to output either
the expressions result, string representation, or tex representation.
Thanks @FSMaxB.Node.transform
not recursing over replaced parts of the
node tree (see #349).randomInt
.Changelog
2015-04-22, version 1.6.0
toTex
. Thanks @FSMaxB.abs(0 + 0i)
evaluated to NaN
.Changelog
2015-04-09, version 1.5.2
1 KiB == 1024 B
, 1 kB == 1000 B
).