guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can somebody help to explain why result from atan does not equal a r


From: John Darrington
Subject: Re: Can somebody help to explain why result from atan does not equal a real?
Date: Thu, 31 Jan 2013 15:50:17 +0100
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Jan 31, 2013 at 08:32:53AM -0500, Noah Lavine wrote:
     What you have here is a precision problem.
     
     scheme@(guile-user)> (= 3.14159265358979 (atan 0 -1))
     $8 = #f
     scheme@(guile-user)> (= $7 (atan 0 -1))
     $9 = #t
     
     It might be possible to have Guile print more digits and make this problem
     go away.
     
     Noah Lavine

pi is an irrational number.  You would need an infinite number of digits 
wouldn't you?

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://keys.gnupg.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]