Re: How to increase Working Precision?




"Paul J Salmon" <pauljsalmom@xxxxxxxxx> wrote in message
news:8b028ca7-4e58-4167-95ea-ad06d5428c4f@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I hope this is the best medium (I tried another newgroup, but the
message has not appeared).


I wish to perform a number of calculations but need about 25 digits of
precision

I can use WorkingPrecision

http://reference.wolfram.com/mathematica/ref/WorkingPrecision.html

to increase the precision of some numerical operations, but how can I
perform all calculations to 25 digits and display all 25? So for
example if I enter

[In 1] Pi + 2.0

it returns

5.141592653589793238462643

rather than 5.14159

(I do not understand your input above, the [Ln 1]? )

Any way, I am no expert on this subject of Mathematica, but I think you can
tell Mathematica what your desired precision on an overall computation by
wrapping the whole expression with the function SetPrecision[] (see help on
this function).

http://reference.wolfram.com/mathematica/ref/SetPrecision.html

(from the above it says

"yields a version of expr in which all numbers have been set to have
precision p."

so may be this is what you want)


Nasser


.



Relevant Pages

  • Re: Calculation of critical p-, z-, t- and F-values
    ... attempts to give a result with n-digit precision. ... many figures it did the calculations to. ... Mathematica, may be a Mathematica expert can comment on this. ... point arithmatics as well if you want by setting some global options at the ...
    (sci.stat.math)
  • Re: How to increase Working Precision?
    ... tell Mathematica what your desired precision on an overall computation by ... wrapping the whole expression with the function SetPrecision[] (see help on ... calculations but need about 25 digits of precision" suggests to it would ... memory in a C program by using floats rather than doubles. ...
    (sci.math.symbolic)
  • Precision
    ... I am trying to change the precision that Matlab uses to do ... Mathematica, you can specify a precision using the function N[some ... What I want is to be able to do floating point calculations on numbers ...
    (comp.soft-sys.matlab)
  • Re: How to increase Working Precision?
    ... arbitrary precision in applied situations is quite ... not 10 problems, each 10 digits. ... the machine-arithmetic subroutine library of Mathematica, ... iterations I've suggested than the 1-2 or 3 arithmetic ...
    (sci.math.symbolic)
  • naive questions about nested intervals with Farey fractions
    ... in a table as the numerator and denominator of a rational number, ... possible to calculate the rational numbers to double precision, ... the values up and store them in single precision cells, then execute ... requires no calculations beyond the booleans within the SELECT ...
    (comp.databases.theory)

Loading