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