MathGroup Archive 1990

[Date Index] [Thread Index] [Author Index]

Search the Archive

Input accuracy


I have recently been trying to get mathematica to accept an input of GIVEN
accuracy, ie: Foo[1.3,25] implies 1.300000000000000000000000, ie: 25 digit
precision according to the Precision[] function, otherwise the
OUTPUT accuracy suffers due to the 'machine accuracy' assumed for '1.3'. The
only way I have found to do this is to use Rationalize[1.3,10^-25], and
use 13/10 in my calculations to arbitrary precision, but
Rationalize[] assumes an input of machine accuracy too, so

Rationalize[0.9999999999999999999,10^-25]

gives 1

which is not adequate for 25-digit processing!

Any ideas?

Thanks,

Keith Slavin,
Tektronix,
Beaverton,Or.
(503) 627-4907
keith at videovax.tv.tek.com


  • Prev by Date: Bernoulli numbers.
  • Next by Date: Integrate ???
  • Previous by thread: Bernoulli numbers.
  • Next by thread: Re: Input accuracy