[R] Why does sin(pi) not return 0?
Rolf Turner
rolf.turner at xtra.co.nz
Thu Sep 26 09:55:38 CEST 2013
On 09/26/13 19:31, Babak Bastan wrote:
> Hi experts,
>
> If I test sin(pi) in r, it returns me 1.224606e-16
>
> Why doesn't return me 0?
If you think that 1.224606e-16 is different from 0, you should probably not
be using computers. See FAQ 7.31 (which is in a way about the inverse of
your question, but it should provide the necessary insight).
cheers,
Rolf Turner
More information about the R-help
mailing list