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.
|
apfloatEvalpublic static final double DEGREE
public IExpr evaluate(ISymbol symbol)
evaluate in interface ISymbolEvaluatorevaluate in class AbstractSymbolEvaluatorsymbol - the symbol which should be evaluatednull,
if evaluation isn't possiblepublic IExpr numericEval(ISymbol symbol)
ISymbolEvaluatornumericEval in interface ISymbolEvaluatornumericEval in class AbstractSymbolEvaluatorsymbol - the symbol which should be evaluatednull,
if evaluation isn't possiblepublic double evalReal()
ISignedNumberConstantevalReal in interface ISignedNumberConstantDoubleStackEvaluatorpublic void setUp(ISymbol symbol)
IEvaluatorsetUp in interface IEvaluatorsetUp in class AbstractSymbolEvaluatorsymbol - the symbol which should be set up