Skip to content
Prev 51308 / 63435 Next

Inconsistency in treating NaN-results?

As a side note, Splus makes sin(x) NA, with a warning, for
abs(x)>1.6*2^48 (about
4.51e+14) because more than half the digits are incorrect in sin(x)
for such x.  E.g.,
in R we get:
[1] -0.792253849684354
1 'mpfr' number of precision  500   bits
[1] -0.7922542110462653250609291646717356496505801794010...

If R did make sin(4.6e14) NaN, would you want a warning?

Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Mon, Nov 30, 2015 at 2:38 PM, Greg Snow <538280 at gmail.com> wrote: