@cortex-js/compute-engine
Advanced tools
Changelog
0.13.0 2023-09-09
expr.compile()
. Read more at
Compilinge
and i
.Half
.Which
["Delimiter"]
expressions.Changelog
0.12.7 2023-09-08
ce.latexDictionary
property can be used to access and modify the dictionary. The
documentation
has been updated.Changelog
0.12.6 2023-09-08
Parser
class.ComputeEngine
now exports the bignum()
and complex()
methods that
can be used to create bignum and complex numbers from strings or numbers. The
methods isBigNum()
and isComplex()
have also been added to check if a
value is a bignum (Decimal
) or complex (Complex
) number, for example as
returned by expr.numericValue
.\leq
was incorrectly parsed as Equals
instead of LessEqual
\exp
command was not parsed correctly.PlusMinus
in infix and prefix position, i.e. a\pm b
and \pm a
.Sum
and Product
Changelog
0.12.1 2022-12-01
Work around unpckg.com issue with libraries using BigInt.
Changelog
0.12.0 2022-11-27
expr.symbols
property return an array of string
. Previously it
returned an array of BoxedExpression
.bigint
instead of
Decimal
instances. Performance improvements of up to 100x.expr.freeVars
provides the free variables in an expression.["RandomExpression"]
expr.parse("1e999 + 1").simplify()
ce.numericMode === "auto"
, square roots of negative numbers would
return an expression instead of a complex number.ce.latexOptions.notation = "engineering"
or "scientific"
was incorrect.expr.isLess
, expr.isGreater
, expr.isLessEqual
,
expr.isGreaterEqual
and ["Min"]
, ["Max"]
Changelog
0.11.0 2022-11-18
ce.defineSymbol()
, ce.defineFunction()
and
ce.pushScope()
have changedhold
symbol attribute is now holdUntil
and can
specify at which stage the substitution should take place.numericMode
did not allow it.ce.assume()
, ce.set()
or expr.value
.