Re: How to increase Working Precision?
- From: Christopher Creutzig <christopher@xxxxxxxxxxx>
- Date: Thu, 13 Mar 2008 23:24:49 +0100
Richard J. Fateman wrote:
r has the property that it prints as 0.
r has the property that r+1 also prints as 0.
r has the property that r+1 == r evaluates as True.
There are many more properties that anyone with a copy of the program
can explore. Like r is a solution to the equation sin(x)=cos(x).
It is too easy for a number like r to be produced by a naive user, or
even a sophisticated one who doesn't understand the arithmetic.
While I don't agree with (most of) your earlier critique in this
thread, this one I feel genuine. (I regard testing for equality on
floats in general a user error, but the behavior of Mathematica when the
user does so anyway is one of the points where I regard the design of
the system to be completely off mark. Then again, in the end, it boils
down to a clear specification, although I still find it makes putting
floating point numbers into generic code (which usually handles just
about anything except floats properly) and either being lucky and
getting an obviously false result or an error or being unlucky and
having the same thing appear only at your customer all too easy.
Equality should be just that, and different floats simply are not equal,
even if they only disagree in a guard digit.
--
if all this stuff was simple, we'd
probably be doing something else. -- Daniel Lichtblau, s.m.symbolic
.
- Follow-Ups:
- 0^0 oh no! (was: How to increase Working Precision?
- From: G. A. Edgar
- 0^0 oh no! (was: How to increase Working Precision?
- References:
- How to increase Working Precision?
- From: Paul J Salmon
- Re: How to increase Working Precision?
- From: Nasser Abbasi
- Re: How to increase Working Precision?
- From: rjf
- Re: How to increase Working Precision?
- From: Nasser Abbasi
- Re: How to increase Working Precision?
- From: sashap
- Re: How to increase Working Precision?
- From: rjf
- Re: How to increase Working Precision?
- From: marks@xxxxxxxxxxx
- Re: How to increase Working Precision?
- From: Christopher Creutzig
- Re: How to increase Working Precision?
- From: rjf
- Re: How to increase Working Precision?
- From: mcmcclur
- Re: How to increase Working Precision?
- From: rjf
- Re: How to increase Working Precision?
- From: mcmcclur
- Re: How to increase Working Precision?
- From: rjf
- Re: How to increase Working Precision?
- From: Daniel Lichtblau
- Re: How to increase Working Precision?
- From: Richard J. Fateman
- How to increase Working Precision?
- Prev by Date: Fermat last theorem
- Next by Date: Re: Fermat last theorem
- Previous by thread: Re: How to increase Working Precision?
- Next by thread: 0^0 oh no! (was: How to increase Working Precision?
- Index(es):
Relevant Pages
|