Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

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

Peter Dalgaard

2006-09-18

Replies:

Iñaki Murillo Arcos <inaki.murillo@(protected):

> 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@(protected)

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.