help-octave
[Top][All Lists]
Advanced

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

Re: Possible loss of accuracy


From: Stephen Montgomery-Smith
Subject: Re: Possible loss of accuracy
Date: Wed, 15 May 2013 18:07:33 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

OK guys, look at this.

exp(2^50 * log(1-2^-50))
ans =  3.6787944117144216749e-01

(1-2^-50)^(2^50)
ans =  3.6787944112862880353e-01

So the problem is with the pow function, not the log or the exp.



reply via email to

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