(.js)
laraImport("lara.MathExtra");
(.lara)
import lara.MathExtra;
Classes:
MathExtra
convertToC(expression)
Attempts to convert a mathematical expression to valid C code (e.g., converts ^ to a call to pow()).
simplify(expression, constants)
Attempts to simplify a mathematical expression.
simplifyToC(expression, constants)
Attempts to simplify a mathematical expression, returning a string that represents C code.