Methods

kahan_sum(summands) → {number}

Numerical stable summation with the Kahan summation algorithm.

Parameters:
NameTypeDescription
summandsArray

Array of values to sum up.

Returns:

The sum.

Type: 
number

neumair_sum(summands) → {Number}

Numerical stable summation with the Neumair summation algorithm.

Parameters:
NameTypeDescription
summandsArray.<Number>

Array of values to sum up.

Returns:

The sum.

Type: 
Number