comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: machine precision
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: machine precision [message #66505 is a reply to message #66504] Mon, 18 May 2009 06:04 Go to previous messageGo to previous message
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Mon, 18 May 2009 05:53:36 -0600, David Fanning <news@dfanning.com>
wrote:

> Uh, Wox, I think you need to read this article again:
>
> http://www.dfanning.com/math_tips/sky_is_falling.html

Ow boy, sorry for bringing this up again, but in the last example
given in your famous article, why is:

f=470.0 - (4.70*100)
d=470d - (4.70d*100)
print,'Bigger than precision:',f,(machar()).eps
print,'Smaller than precision:',d,(machar(/double)).eps

I understand that when you give 4.7 to a computer, it stores a number
close to it. When given 4.70d, the same thing happens, only now we're
closer than with single-precision. Why is the machine precision (EPS
from machar) not reflecting this?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Simultaneous fitting in IDL
Next Topic: Simultaneous fitting in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 05:52:52 PDT 2025

Total time taken to generate the page: 1.28045 seconds