help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to work with arbitrary precision and accuracy?


From: Mark Esplin
Subject: Re: how to work with arbitrary precision and accuracy?
Date: Mon, 13 May 2002 10:10:49 -0400

        As far as I know, the precision of octave is controlled by the double 
precision floating point of the c library that octave is linked with?  
Changing output-precision changes how many digits are printed, but doesn't 
change the precision of calculations.

                             -Mark Esplin

On Monday 13 May 2002 09:21 am, William Kreamer wrote:
> Octave only has pi and the calculations of its built-in functions
> programmed to 16 digit accuracy. There is a work-around. You can obtain pi
> or e to your desired accuracy from a mathematical reference book such as 
> the CRC Standard Mathematical Tables.
>
> To obtain the values of the elementary functions to 32 digit accuracy,
> Octave can be programmed to calculate the functions from the series. Just
> be careful not to use arguments that diverge (or converge very slowly) in
> the series.
>
> ----- Original Message -----
> From: <address@hidden>
> To: <address@hidden>
> Sent: Sunday, May 12, 2002 12:36
> Subject: how to work with arbitrary precision and accuracy?
>
> > Hello.
> > I don't know if octave can do this. My question is about to work with an
> > arbitrary precission and accuracy with octave.
> > For example, if I do:
> > output_precision = 32
> > and next I do
> > pi
> > octave responses:
> > 3.1415926535897931159979634685442e+00
> > but this number only has 16 numbers correctly.
> > What have to do if I work with 32 numbers?
> >
> > Thanks in advance,
> >
> > Arnau.
> >



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]