On Mon, 18 Sep 2006, [iso-8859-1] 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.

Real numbers are strange.  Would the result of:

    acos(0.5) - pi/3

close enough to zero for you?  Try help('Comparison') ,  ?'==' for an
explanation, or 'abs(acos(0.5) - pi/3) < 1e-9' for a solution.

Dave
-- 
 Dr. David Forrest
 [EMAIL PROTECTED]                                    (804)684-7900w
 [EMAIL PROTECTED]                             (804)642-0662h
                                   http://maplepark.com/~drf5n/

______________________________________________
[email protected] 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.

Reply via email to