Re: How to increase Working Precision?



marks@xxxxxxxxxxx wrote:

x has a small relative error (high precision)

In[1]:= x = 3.15000000000000000000000000000000;

In[2]:= Precision[x]

Out[2]= 32.4983

Sorry, but the standard notion of “relative error” is always “relative
to the exact result approximated.” As an approximation to pi, x has a
relative error of 0.0027, which is not all that small. The relative
error of a number does not change in the least when you add more zeroes
at the end, after the decimal point. Actually, in standard notation,
3.15000000000000000000000000000000 is exactly the same number as 3.15.
At least in pure math. A subset of engineers disagrees, of course, as do
most programs having multi-precision floats, and for good reason.

--
if all this stuff was simple, we'd
probably be doing something else. -- Daniel Lichtblau, s.m.symbolic
.



Relevant Pages

  • Re: Another Tricky Problem I am Messing With (Not Homework)
    ... I don't believe I've misunderstood the C standard, ... "The clock function returns the implementation's best approximation..." ... "APPROXIMATION"! ... _sleep() does; you've just insulted me for not already knowing. ...
    (comp.lang.c)
  • Re: Rounding error when doing float-to-integer
    ... Regardless of whether or not a strict interpretation of the standard ... admitting the philosophical merits of the abstract debate, ... advise the cautious programmer to write code that works anyway. ... exact in floating point world. ...
    (comp.lang.fortran)
  • Re: Sagittal music notation system
    ... Our 12 note system has evolved as standard. ... The older systems tend to be based on various rational pitches, ... first variation, one can choose different n, finding a good approximation ... As for Turkish notation, I think there was a suggestion of adding it to ...
    (rec.music.theory)
  • Re: Interface standards (was Re: Dual Port RAM)
    ... to do it anyway) does not qualify it as a 'standard'. ... Although the fifo functionality is pretty low level, ... Both have generics for specifying width of the fifo...but can't agree on the ... implements the EXACT SAME FUNCTION. ...
    (comp.arch.fpga)
  • Re: Float comparison
    ... In addition doubles *are* used to store exact integral values ... that taken in isolation you do NOT know that it is a range. ... The standard actually talks about values that "can be represented exactly" in section 6.3.1.5. ...
    (comp.lang.c)

Loading