Changelog
2013-08-22, version 0.12.1
Changelog
2013-08-22, version 0.12.0
random([min, max])
, randomInt([min, max])
,
pickRandom(array)
. Thanks Sebastien Piquemal (@sebpic).distribution(name)
, generating a distribution object
with functions random
, randomInt
, pickRandom
for different
distributions. Currently supporting uniform
and normal
.range
to exclude the upper bound, so range(1, 4)
now returns [1, 2, 3]
instead of [1, 2, 3, 4]
.range
, which is now range(start, end [, step])
instead of range(start, [step, ] end)
.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].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.A[0, 0:3]
.Changelog
2013-07-23, version 0.11.1
Changelog
2013-07-23, version 0.11.0
concat
is now zero-based.true
and false
.boolean
.select
not accepting 0
as input.
Thanks Elijah Manor (@elijahmanor).[[], []]
.Changelog
2013-07-08, version 0.10.0
2i * 2i
now returns a
Number -4
instead of a Complex -4 + 0i
).help
function.size
and squeeze
now return a Matrix instead of an Array as
output on Matrix input.unaryminus
to unary
.Changelog
2013-06-14, version 0.9.1
emultiply
(x .* y
),
edivide
(x ./ y
), epow
(x .^ y
).Infinity
and NaN
.Changelog
2013-05-29, version 0.9.0
math.parse(expr [,scope])
. Optional parameter scope can
be a plain JavaScript Object containing variables.math.expr(expr [, scope])
with an additional parameter
scope
, similar to parse
. Example: math.eval('x^a', {x:3, a:2});
.subset
, to get or set a subset from a matrix, string,
or other data types.det
. Thanks Bryan Cuccioli (@bcuccioli).Changelog
2013-05-18, version 0.8.2
Changelog
2013-05-10, version 0.8.1
Changelog
2013-05-10, version 0.8.0
end
keyword for index operator, and added support for implicit
start and end (expressions like a(2,:)
and b(2:end,3:end-1)
are supported
now).