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

From: Douglas Bates <>
Date: Mon 18 Sep 2006 - 21:13:17 GMT

On 9/18/06, Iņaki Murillo Arcos <> wrote:
> Hello,
> I don't know if the result of
> acos(0.5) == pi/3
> is a bug or not. It looks strange to me.


> all.equal(acos(0.5), pi/3)
[1] TRUE so you may want to check the FAQ entry on comparisons involving floating point numbers. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue Sep 19 08:03:19 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 18 Sep 2006 - 22:30:05 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.