[R] acos(0.5) == pi/3 FALSE

Peter Dalgaard p.dalgaard at biostat.ku.dk
Mon Sep 18 23:09:34 CEST 2006


Iñaki Murillo Arcos <inaki.murillo at ehu.es> writes:

> Hello,
> 
>   I don't know if the result of
> 
>   acos(0.5) == pi/3
> 
> is a bug or not. It looks strange to me.

Have a look in the R FAQ:

>   acos(0.5) - pi/3
[1] 2.220446e-16



-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list