Description
The Sum class can be used to add and subtract many terms. Subtraction of individual terms is performed by negating the argument and using the add method:
Sum.of(1, -2, 3, -4, 5).add(-6).add(7)
However there is no subtract method for subtraction of another sum to complement the add(Sum) method. This prevents using the extended precision part of the Sum in subtraction.
I suggest adding:
public Sum subtract(Sum other)