help-octave
[Top][All Lists]
Advanced

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

Re: help with octave


From: Jordi Gutiérrez Hermoso
Subject: Re: help with octave
Date: Tue, 13 Jul 2010 18:12:11 -0500

On 13 July 2010 10:51, Candice Johnson <address@hidden> wrote:
> 1, please send an example on how to change the number of significanf
> figures.

Octave doesn't really have a concept of significant figures. It uses
IEEE 754 doubles by default. There are other numeric types, but I
doubt they're the ones you want. You can change how many are in the
output with "format long" or "format short". Also look at this:

     
http://octave.1599824.n4.nabble.com/Increasing-precision-in-octave-td1631752.html

But if you need many arbitrary-precision calculations, Octave isn't
the tool for the job. Use Pari/GP or Maxima or even GAP instead.

> 2,please send an example on how to evaluate a series using loop- not getting
> loop- eg, 1^2 +2^2+ 3^2 . . . 100^2.

sum([1:100].^2)


reply via email to

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