MathUtil
object MathUtil
Math static utility methods.
Functions
Link copied to clipboard
Return a relative error bound for a sum of numValues positive doubles, computed using recursive summation, ie. sum = x1 + ... + xn. NOTE: This only works if all values are POSITIVE so that Σ |xi| == |Σ xi|. This uses formula 3.5 from Higham, Nicholas J. (1993), "The accuracy of floating point summation", SIAM Journal on Scientific Computing.
Link copied to clipboard
Return the maximum possible sum across numValues non-negative doubles, assuming one sum yielded sum.