public class StackMachine.Cos extends StackMachine.UnaryMathFunction
Cos
here.Constructor and Description |
---|
StackMachine.Cos() |
Modifier and Type | Method and Description |
---|---|
double |
eval(double x)
Describe
eval method here. |
java.lang.String |
getName()
Describe
getName method here. |
arity, execute
write
public double eval(double x)
eval
method here.eval
in class StackMachine.UnaryMathFunction
x
- a double
valuedouble
valuepublic java.lang.String getName()
getName
method here.getName
in class StackMachine.MathFunction
String
value