public class Sine extends UnaryExpression
| Constructor and Description |
|---|
Sine(Expression expression)
Initializes this sine expression with the given subexpression.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(double x,
double y)
Evaluates this sine expression at the given x- and y-coordinate.
|
String |
toString()
Returns a string representation of this sine expression.
|
equals, evaluate, hashCode, toStringpublic Sine(Expression expression)
expression - the subexpression.public double evaluate(double x,
double y)
evaluate in class Expressionx - the x-coordinate.y - the y-coordinate.