Precision



Hello,

I am trying to change the precision that Matlab uses to do
calculations, and I'm not sure if it's even possible. I think that in
Mathematica, you can specify a precision using the function N[some
number, number of decimal places], and I am hoping that something
similar exists in Matlab.

So, if I say 1.00001 + 1.00001, and I set the precision to 2, the
result is 1.0, but if I set the precision to 6, the sum is 2.00002.

The catch is that I'm hoping to do this with big number rather than
small ones. I know that I can do rounding if the numbers are small.
What I want is to be able to do floating point calculations on numbers
that are 24 digits long.

Is anybody familiar with a way to do this?

Thanks,
Ben

.



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: Mathematica Vs. Matlab
    ... > but Mathematica from the start had a completely different approach towards ... > compared Mathematica to Matlab, Mathematica will leave Matlab in its dust ... improving their numerical calculations. ...
    (sci.math.symbolic)
  • Re: Precision
    ... > calculations, and I'm not sure if it's even possible. ... you can specify a precision using the function N[some ... > similar exists in Matlab. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: Mathematica Vs. Matlab
    ... Your report is more 2 years old! ... Mathematica 5.0 is a completely different ... animal, Mathematica scores higher than Matlab on all categories, was the ... > improving their numerical calculations. ...
    (sci.math.symbolic)
  • Re: yet another question on Mathematica numerical, how to force it to use single precision?
    ... which is should use machine precision. ... This is what I get from Fortran ... This is what I ge from Matlab (by forcing matlab to use single precision ... I want Mathematica to generate those same digits. ...
    (sci.math.symbolic)

Loading