CBFalconer said:
Flash Gordon wrote:
.... snip ...
I don't see the point in that.
The point is that you are failing to understand when things are
explained in the abstract, so I want to explain using a concrete example
that *your* believe in, not one that I have invented.
I hope to write a demonstration
program sometime when this has calmed down. Right now I have no
time for it. I have given the values expressed in terms of the
appropriate EPSILON values in float.h, which are portable TO
SIMILAR fp-systems. Most are similar.
As already explained to you, I and others are talking about what applies
to EVERY C implementation, not some undefined subset of similar
implementations. If you model does not apply to every C implementation
then that in itself should be enough to show you that it is not an
accurate reflection of the standard.
Actually, I can't even do it because my library is not a C99
library, and it doesn't include nextafter.
OK, replace the second line which whatever you need to get the next
representable value above 1.0. Or even do the arithmetic based on what
is in your float.h file to derive the numbers (since you say they can be
derived from them, that should be easy).
I don't have any c99
library, and I am not going to bother to write a nextafter. I have
shown how you can get the same result from the appropriate EPSILON.
If you know how to get the numbers then you know how to get them. I need
the numbers from YOU so that you cannot claim that I have misunderstood
how to generate them.
If you want just invent some numbers! As long as they are numbers you
are happy show something reasonable and something you consider valid for
discussion of what could occur on an implementation I don't care that
much. Ideally I want what you believe are real numbers so you can't
claim that what I point out is an artifact of the chosen example, but
I'll work with whatever you provide.