machine precision,
- From: "vsgdp" <spam@xxxxxxxx>
- Date: Sun, 8 Oct 2006 23:30:14 -0700
Hi,
I found an algorithm for determining machine precision that can be described
as follows. Set x = 0.5. Then if x + 1 > 1, repeat the above but with x =
x * 0.5. So basically, we keep shrinking x until it is so small that adding
it to 1 still results in 1 as far as the computer is concerned. Then x is
the machine precision.
I was wondering, however, if one knows the floating-point format, can one
just use bit operations and pick some floating point number and then add 1
to the least significant digit in the mantissa to see what the next largest
number is. Then the difference between the two is the machine precision?
.
- Follow-Ups:
- Re: machine precision,
- From: D. Baruth
- Re: machine precision,
- From: Everett M. Greene
- Re: machine precision,
- From: Peter Spellucci
- Re: machine precision,
- From: paya
- Re: machine precision,
- Prev by Date: Re: polynomial interpolation,
- Next by Date: Re: machine precision,
- Previous by thread: spherical neumann function
- Next by thread: Re: machine precision,
- Index(es):
Relevant Pages
|