Class Constant
java.lang.Object
studio.magemonkey.codex.util.eval.javaluator.Constant
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 :
With such a constant, you will be able to evaluate the expression "sin(pi/4)"
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:
-
Constructor Summary
Constructors -
Method Summary