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
).Changelog
2015-04-08, version 1.5.1
Changelog
2015-03-28, version 1.5.0
stone
(6.35 kg).atan2
. Thanks @BigFav.Node.toString
and
Node.toTex
functions. Thanks @FSMaxB.format
sometimes returning exponential notation when
it should return a fixed notation.Changelog
2015-02-28, version 1.4.0
acosh
, acoth
, acsch
, asech
, asinh
, atanh
, acot
, acsc
, asec
.
Thanks @BigFav.cot
, csc
, sec
, coth
,
csch
, sech
. Thanks @BigFav.norm()
and abs()
for large complex numbers.
Thanks @rjbaucells.Changelog
2015-02-09, version 1.3.0
sin
,
cos
, tan
, asin
, acos
, atan
, cosh
, sinh
, tanh
. Thanks @BigFav.trace
. Thanks @pcorey.pi
and e
.NaN
and Infinity
not being BigNumber objects when
BigNumbers are configured.toTex
representation of function
permutations
.Changelog
2014-12-25, version 1.2.0
bitAnd
, bitNot
, bitOr
, bitXor
,
leftShift
, rightArithShift
, and rightLogShift
. Thanks @BigFav.and
, not
, or
, xor
. Thanks @BigFav.gamma
function. Thanks @BigFav.inch in cm
will return 2.54 cm
instead of cm
.sinh
and complex cos
and sin
. Thanks @pavpanchekha.select
to chain
. The old function select
will remain
functional until math.js v2.0.