Package org.hipparchus.util
Class MathUtils.SumAndResidual
java.lang.Object
org.hipparchus.util.MathUtils.SumAndResidual
- Enclosing class:
- MathUtils
Result class for
MathUtils.twoSum(double, double)
containing the
sum and the residual error in the sum.-
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the residual error in the sum.double
getSum()
Returns the sum.
-
Method Details
-
getSum
public double getSum()Returns the sum.- Returns:
- sum
-
getResidual
public double getResidual()Returns the residual error in the sum.- Returns:
- residual error in the sum
-