public interface Expression
Can be evaluated to return a double value. If an error occurs Double.NaN
will be returned.
Modifier and Type | Method and Description |
---|---|
double |
evaluate()
Evaluates the expression to a double number.
|
default boolean |
isConstant()
Determines the this expression is constant
|
default Expression |
simplify()
Returns a simplified version of this expression.
|
double evaluate()
default Expression simplify()
default boolean isConstant()
Copyright © 2020. All rights reserved.