- All Implemented Interfaces:
Term
-
-
Constructor Summary
Constructors
-
Method Summary
double
Calculates the result of this
Term
.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
minuend
protected final Term minuend
-
subtrahend
protected final Term subtrahend
-
Constructor Details
-
Sub
public Sub(Term minuend,
Term subtrahend)
- Parameters:
minuend
- the minuend
subtrahend
- the subtrahend
-
Method Details
-
calculate
public double calculate(double... values)
Description copied from interface: Term
Calculates the result of this
Term
.
- Specified by:
calculate
in interface Term
- Parameters:
values
- the values
- Returns:
- the result