public class Degree extends AbstractSymbolEvaluator implements ISignedNumberConstant
Modifier and Type | Field and Description |
---|---|
static double |
DEGREE |
Constructor and Description |
---|
Degree() |
Modifier and Type | Method and Description |
---|---|
double |
evalReal()
Evaluate the symbol to a double number
|
IExpr |
evaluate(ISymbol symbol)
Constant Degree converted to Pi/180
|
IExpr |
numericEval(ISymbol symbol)
Numerical evaluation of a symbol
|
void |
setUp(ISymbol symbol)
This method will be called every time a new ISymbol will be created.
|
apfloatEval
public static final double DEGREE
public IExpr evaluate(ISymbol symbol)
evaluate
in interface ISymbolEvaluator
evaluate
in class AbstractSymbolEvaluator
symbol
- the symbol which should be evaluatednull
,
if evaluation isn't possiblepublic IExpr numericEval(ISymbol symbol)
ISymbolEvaluator
numericEval
in interface ISymbolEvaluator
numericEval
in class AbstractSymbolEvaluator
symbol
- the symbol which should be evaluatednull
,
if evaluation isn't possiblepublic double evalReal()
ISignedNumberConstant
evalReal
in interface ISignedNumberConstant
DoubleStackEvaluator
public void setUp(ISymbol symbol)
IEvaluator
setUp
in interface IEvaluator
setUp
in class AbstractSymbolEvaluator
symbol
- the symbol which should be set up