Supported operators:
Supported functions: abs, acos, asin, atan, atan2, cbrt, ceil, cos, cosh, exp, floor, ln, log, log10, max, max, min, min, rint, round, sin, sinh, sqrt, tan, tanh and more. (See the Functions class or the wiki)
Constants: e, pi
To compile an equation, run {@code Expression.compile("expression here", "var1", "var2"...)}. If you wish to run the equation multiple times, you can then optimize it, by calling {@link #optimize()}. You can then run the equation as many times as you want by calling {@link #evaluate(double)}. You do not need to pass values for all variables specified while compiling. To query variables after evaluation, you can use {@link #getVariable(String,boolean)}. To get a value out of these, use {@link Variable#getValue()}.
Variables are also supported and can be set either by passing values to {@link #evaluate(double)}.
|
|
|
|
|
|
|
|
|
|