help-octave
[Top][All Lists]
Advanced

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

trying to understand why I get 2.2204e-16 rather than 0


From: naryana.shankara
Subject: trying to understand why I get 2.2204e-16 rather than 0
Date: Wed, 3 Aug 2016 17:41:35 -0700 (PDT)

If I enter cot (pi/4)-1 I get 2.2204e-16
>From my trig days I remember cot (pi/4) is 1 and 1-1 is 0
Octave also confirms cot (pi/4) is 1 and 1-1 is 0

so why does Octave spit out 2.2204e-16 when cot(pi/4)-1 is entered?



--
View this message in context: 
http://octave.1599824.n4.nabble.com/trying-to-understand-why-I-get-2-2204e-16-rather-than-0-tp4678993.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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