@hugov/sum
v1.0.0
Published
kahan compensated sum of array with optional map function
Downloads
3
Readme
@hugov/sum
small standalone kahan compensated sum with optional map function
Example
import sum from '@hugov/sum'
const array = [1,2,3],
total = sum(array),
hypot = Math.sqrt( sum(array, v=>v*v ) )
License
Released under the MIT License