add
add copied to clipboard
A cross-browser, numerically stable algorithm that adds floats accurately in Javascript
This module causes RangeErrors when used with package linear-algebra. Perhaps too many recursions?
Even though #4 wasn't a massive performance improvement, being able to pass in parameters is more efficient when you have say 2 or 3 values you wish to add and...
Since `add` is being used for more accurate summations is there something similar which can or should be done for floating point multiplication? I'm not familiar enough with the number...
## Summary The `transform` function has a redundant exponentiation that makes `sigma` astronomically larger than intended. ## The Problem ```javascript M = nextPowerTwo(p.length + 2) // Already returns 2^⌈log₂(n+2)⌉ twoToTheM...