public class Constant
extends java.lang.Object
A constant in an expression.
Some expressions needs constants. For instance it is impossible to perform trigonometric calculus without using pi.
A constant allows you to use mnemonic in your expressions instead of the raw value of the constant.
A constant for pi would be defined by :
Constant pi = new Constant("pi");
With such a constant, you will be able to evaluate the expression "sin(pi/4)"
- Author:
- Jean-Marc Astesana
- See Also:
- License information,
AbstractEvaluator.evaluate(Constant, Object)