[R] acos(0.5) == pi/3 FALSE
Charles Annis, P.E.
Charles.Annis at StatisticalEngineering.com
Mon Sep 18 23:06:01 CEST 2006
How close do you think it should be, given finite resolution with digital
computing?
> acos(0.5) - pi/3
[1] 2.220446e-16
Charles Annis, P.E.
Charles.Annis at StatisticalEngineering.com
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Iñaki Murillo Arcos
Sent: Monday, September 18, 2006 1:32 PM
To: r-help at stat.math.ethz.ch
Subject: [R] acos(0.5) == pi/3 FALSE
Hello,
I don't know if the result of
acos(0.5) == pi/3
is a bug or not. It looks strange to me.
Inaki Murillo
______________________________________________
R-help at stat.math.ethz.ch mailing list
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.
More information about the R-help
mailing list