mathjs v0.12.0 Release Notes
Release Date: 2013-08-22 // over 10 years ago-
- Implemented functions
random([min, max])
,randomInt([min, max])
,pickRandom(array)
. Thanks Sebastien Piquemal (@sebpic). - Implemented function
distribution(name)
, generating a distribution object with functionsrandom
,randomInt
,pickRandom
for different distributions. Currently supportinguniform
andnormal
. - ๐ Changed the behavior of
range
to exclude the upper bound, sorange(1, 4)
now returns[1, 2, 3]
instead of[1, 2, 3, 4]
. - ๐ Changed the syntax of
range
, which is nowrange(start, end [, step])
instead ofrange(start, [step, ] end)
. - ๐ Changed the behavior of
ones
andzeros
to geometric dimensions, for exampleones(3)
returns a vector with length 3, filled with ones, andones(3,3)
returns a 2D array with size [3, 3]. - ๐ Changed the return type of
ones
andzeros
: 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.
- Implemented functions