4 Commits

Author SHA1 Message Date
Pat Grasso
57f082f64d Use internal sign() (Math.sign only in ES2015+) 2016-10-20 15:33:10 -04:00
Pat Grasso
ee41e35b5c Fix erf(bignumber) -> bignumber to return proper value
Note: The precision for the bignumber returned may not be accurate, as
the `erf()` approximation only guarantees precision to a certain degree.
2016-10-20 15:33:10 -04:00
Pat Grasso
80fd73c115 Update submodule index files to include erf 2016-10-20 15:33:09 -04:00
Pat Grasso
6ae793edea Implement erf(x) using W. J. Cody's approximation
Translate the Fortran77 implementation of W. J. Cody's "Rational
Chebyshev Approximations for the Error Function".
Place in new function subdirectory, `function/special`, because this
function doesn't seem to fit into any other category.
2016-10-20 15:33:09 -04:00