public abstract class DoubleMathExpression extends org.vesalainen.grammar.math.DoubleMathStack implements java.util.function.DoubleSupplier
| Constructor and Description |
|---|
DoubleMathExpression(String expression,
boolean degrees)
Creates DoubleMathExpression for given expression.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getAsDouble() |
Set<String> |
getVariables()
Returns immutable set of variable identifiers.
|
asType, convertFrom, convertTo, findMethod, getField, getMethod, getParameters, getReturnType, getVariable, invoke, isRadianArgs, isRadianReturn, loadArray, loadArrayItem, loadField, loadVariable, number, pow, setIndexabs, acos, add, and, asin, atan, atan2, cbrt, ceil, checkAnd, checkOr, clear, cos, cosh, div, dup, eq, exp, expm1, floor, ge, get, gt, hypot, isEmpty, le, log, log10, log1p, lt, max, min, mod, mul, ne, neg, not, or, peek, pop, pow, push, sin, sinh, size, sqrt, subtract, tan, tanh, toDegrees, toRadiansclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic DoubleMathExpression(String expression, boolean degrees)
If degrees is true parameters to sin, cos and tan are converted to radians before call. Also return value of asin, acos and atan is converted to degrees.
expression - degrees - public double getAsDouble()
getAsDouble in interface java.util.function.DoubleSupplierCopyright © 2017. All rights reserved.