org.matheclipse.core.builtin.constant
Class Degree
- java.lang.Object
-
- org.matheclipse.core.eval.interfaces.AbstractSymbolEvaluator
-
- org.matheclipse.core.builtin.constant.Degree
-
- All Implemented Interfaces:
- ISignedNumberConstant, ISymbolEvaluator, IEvaluator
public class Degree extends AbstractSymbolEvaluator implements ISignedNumberConstant
The constant Degree converts to Pi/180 radians See: Degree (angle)
-
-
Field Summary
Fields Modifier and Type Field and Description static doubleDEGREE
-
Constructor Summary
Constructors Constructor and Description Degree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleevalReal()Evaluate the symbol to a double numberIExprevaluate(ISymbol symbol)Constant Degree converted to Pi/180IExprnumericEval(ISymbol symbol)Numerical evaluation of a symbolvoidsetUp(ISymbol symbol)This method will be called every time a new ISymbol will be created.
-
-
-
Field Detail
-
DEGREE
public static final double DEGREE
- See Also:
- Constant Field Values
-
-
Method Detail
-
evaluate
public IExpr evaluate(ISymbol symbol)
Constant Degree converted to Pi/180- Specified by:
evaluatein interfaceISymbolEvaluator- Overrides:
evaluatein classAbstractSymbolEvaluator- Parameters:
symbol- the symbol which should be evaluated- Returns:
- the evaluated object or
null, if evaluation isn't possible
-
numericEval
public IExpr numericEval(ISymbol symbol)
Description copied from interface:ISymbolEvaluatorNumerical evaluation of a symbol- Specified by:
numericEvalin interfaceISymbolEvaluator- Overrides:
numericEvalin classAbstractSymbolEvaluator- Parameters:
symbol- the symbol which should be evaluated- Returns:
- the evaluated object or
null, if evaluation isn't possible
-
evalReal
public double evalReal()
Description copied from interface:ISignedNumberConstantEvaluate the symbol to a double number- Specified by:
evalRealin interfaceISignedNumberConstant- Returns:
- See Also:
EvalDouble
-
setUp
public void setUp(ISymbol symbol)
Description copied from interface:IEvaluatorThis method will be called every time a new ISymbol will be created. In this method you can set ISymbol attributes or constants for the symbol- Specified by:
setUpin interfaceIEvaluator- Overrides:
setUpin classAbstractSymbolEvaluator- Parameters:
symbol- the symbol which should be set up
-
-
DMelt 3.0 © DataMelt by jWork.ORG