2 Commits

Author SHA1 Message Date
Pat Grasso
d2ae67cca3 erf(Infinity) should return 1, not NaN
Likewise, erf(-Infinity) should be -1. This is true for any really large
|x|...say, |x| > 2^53.
2016-10-20 15:54:02 -04:00
Pat Grasso
33ab725d53 Create spec for erf() and include test data
Values in `erf.values.json` come from python's `math.erf()`. Actual
values should be within 5e-16 of the expected values.

Test against real number, matrix, array, bignumber, boolean, and
null values.
2016-10-20 15:33:09 -04:00