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

Charles Annis, P.E.

2006-09-18

Replies:

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@(protected)
phone: 561-352-9699
eFax: 614-455-3265
http://www.StatisticalEngineering.com


-----Original Message-----
From: r-help-bounces@(protected)
[mailto:r-help-bounces@(protected)
Sent: Monday, September 18, 2006 1:32 PM
To: r-help@(protected)
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@(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.

______________________________________________
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.