Class Cosinus
java.lang.Object
calculator.functions.UnaryFunction
calculator.functions.Cosinus
- All Implemented Interfaces:
Expression
This class represents the arithmetic unary operation "cos".
The class extends an abstract superclass UnaryFunction.
-
Field Summary
Fields inherited from class UnaryFunction
arg, symbol -
Constructor Summary
ConstructorsConstructorDescriptionCosinus(Expression arg) Class constructor specifying an Expression to apply the cosine function. -
Method Summary
-
Constructor Details
-
Cosinus
Class constructor specifying an Expression to apply the cosine function.- Parameters:
arg- The Expression to apply the operation on- Throws:
IllegalConstruction- If a null argument is passed
-
-
Method Details
-
op
- Specified by:
opin classUnaryFunction
-
op
- Specified by:
opin classUnaryFunction
-
op
- Specified by:
opin classUnaryFunction
-
op
- Specified by:
opin classUnaryFunction
-