help-octave
[Top][All Lists]

## Re: how to work with arbitrary precision and accuracy?

 From: William Kreamer Subject: Re: how to work with arbitrary precision and accuracy? Date: Mon, 13 May 2002 09:21:04 -0400

```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 -----
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?
>
>
> 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
> -------------------------------------------------------------
>
>

-------------------------------------------------------------
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
-------------------------------------------------------------

```