For Programmers: Free Programming Magazines  


Home > Archive > Fortran > December 2004 > Re: small numerical differences in floating point result between









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: small numerical differences in floating point result between
Victor Bazarov

2004-12-20, 3:59 pm

Merrill & Michele wrote:
> "JS" <someone@somewhere.com> wrote in message
> news:e8o1s0t43aemputvbudau75v4rbp0nn8sd@
4ax.com...
>
>
>
> Does the Standard have anything to say about machine epsilon? MPJ


Which Standard do you mean to ask about? You cross-posted to three
different language newsgroups. The C++ Standard says that the member
'epsilon' of 'std::numeric_limits' returns the difference between 1
and the least value greater than 1 that is representable. It does not
say specify the actual value returned from 'epsilon'. The C Standard
does give the maximum acceptable values of 'FLT_EPSILON', 'DBL_EPSILON'
and 'LDBL_EPSILON', but your implementation is free to provide its own,
smaller values. And I have no idea about the Fortran Standard.

V
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com