public class Multiplication extends BinaryExpression
myLeft, myRight, mySymbol
gelementsToValue
Constructor and Description |
---|
Multiplication(ArithmeticBase lhs,
ArithmeticBase rhs)
Represents a multiplication
|
Modifier and Type | Method and Description |
---|---|
double |
value(Context c) |
leftValue, rightValue, toString
evaluate
public Multiplication(ArithmeticBase lhs, ArithmeticBase rhs)
lhs
- the left-hand side of the multiplication (before the x)rhs
- the right-hand side of the multiplication (after the x)public double value(Context c)
value
in class ArithmeticInstruction