[R] calculating error

Branimir K. Hackenberger hack at ffos.hr
Sun Sep 12 20:28:24 CEST 2004


Could anybody explain this results?

>sin(2*pi)           
-2.449213e-16         #should be zero


>(10^16)*sin(log2(4)*pi)
-2.449213             #should be zero too


and explain what to do to correct this events?

Thanks!!!


Branimir K. Hackenberger




More information about the R-help mailing list