Calculus with Matlab or octave

Sergei Steshenko sergstesh at yahoo.com
Sat May 10 04:45:41 CDT 2008


--- Jordi Gutiérrez Hermoso <jordigh at gmail.com> wrote:

> On 09/05/2008, hassen62 at voila.fr <hassen62 at voila.fr> wrote:
> > when we make some simple calculus with Octave or Matlab, how to have precise
> > results in more than 4 decimal numbers.
> 
> Octave uses double precision floats for almost everything which is
> about 16 decimal digits of precision. It just doesn't show all that
> precision by default, even if it does use it for computations.
> 
> If you want to see it, just type "format long", which will make Octave
> display it.
> 
> - Jordi G. H.
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 

Try also

help output_precision

and use, say,

output_precision(18)
.

Regards,
  Sergei.


Applications From Scratch: http://appsfromscratch.berlios.de/


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the Help-octave mailing list