Class Tanh
java.lang.Object
calculator.functions.UnaryFunction
calculator.functions.Tanh
- All Implemented Interfaces:
Expression
This class represents the arithmetic unary operation "tanh".
The class extends an abstract superclass UnaryOperation.
-
Field Summary
Fields inherited from class UnaryFunction
arg, symbol -
Constructor Summary
ConstructorsConstructorDescriptionTanh(Expression arg) Class constructor specifying an Expression to apply the hyperbolic tangent function. -
Method Summary
-
Constructor Details
-
Tanh
Class constructor specifying an Expression to apply the hyperbolic tangent 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
-