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.Changelog
2014-11-22, version 1.1.1
pow
.Changelog
2014-11-15, version 1.1.0
dot
(dot product), cross
(cross product), and
nthRoot
.clone
, map
, forEach
, traverse
,
transform
, and filter
for expression trees.index
in the callbacks of map
and forEach
are now cloned
for every callback.params
to args
and vice versa to make things consistent.Block.nodes
to Block.blocks
.FunctionNode
now has a name: string
instead of a symbol: SymbolNode
.RangeNode
to
new RangeNode(start: Node, end: Node [, step: Node])
.BlockNode
must now be passed via the constructor instead
of via a function add
.2e
giving a syntax error instead of being parsed as 2 * e
.Changelog
2014-09-12, version 1.0.1
Changelog
2014-09-04, version 1.0.0
filter(x, test)
.math.distribution
for now, needs some rethinking.math.number
can convert units to numbers (requires a second argument)Changelog
2014-08-21, version 0.27.0
sort(x [, compare])
and flatten(x)
.null
in all functions.wrap
of function math.import
to false.math.uninitialized
as default value.__transform__
to transform
, and documented
the transform feature.math.import
not applying options when passing a module name.index
consists of
scalar values, and no longer for ranges resolving into a single value.Changelog
2014-08-03, version 0.26.0
math([options])
,
to prevent side effects from math being a function instead of an object.
Instead, use the function math.create([options])
to create a new instance.BigNumber
support for all constants: pi
, tau
, e
, phi
,
E
, LN2
, LN10
, LOG2E
, LOG10E
, PI
, SQRT1_2
, and SQRT2
.BigNumber
support for functions gcd
, xgcd
, and lcm
.gxcd
returning an Array when math.js was configured
as {matrix: 'matrix'}
.ResultSet
instead of an Array
.concat
, min
, max
,
and mean
expect an one-based dimension number.map
and forEach
invoke the callback with one-based indices
when used from within the expression parser.concat
not accepting a BigNumber
for parameter dim
.squeeze
now squeezes both inner and outer singleton dimensions.FunctionNode
to FunctionAssignmentNode
, and renamed ParamsNode
to FunctionNode
for more clarity.