MathGroup Archive 1990

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

Search the Archive

Input accuracy

  • To: mathgroup at
  • Subject: Input accuracy
  • From: "Keith R. Slavin" <keith at>
  • Date: Wed, 07 Nov 90 12:45:18 PST

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


gives 1

which is not adequate for 25-digit processing!

Any ideas?


Keith Slavin,
(503) 627-4907
keith at

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