help-octave
[Top][All Lists]
Advanced

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

Re: Zero or not?


From: Francesco Potorti`
Subject: Re: Zero or not?
Date: Mon, 23 Jul 2007 11:31:04 +0200

>> >Ok, that's a start. If I calculate the sum of N numbers, what is the  
>> >maximum 'offset' of the numerical result to mathematically correct  
>> >result?
>> 
>> Not a numerical expert, but the error magnitude should be bounded by
>> eps*sum(abs(x[1:N])).

>A bound should be like this:
>
>   N*eps*max(abs(x))

Ok, more precisely: the sum of two numbers has an error bounded by
2*eps.  So, if you sum them starting from the smaller ones you get what
I wrote above.  If you sum them without sorting them first, which is
the usual way, you get the second expression that you wrote above.

-- 
Francesco Potortì (ricercatore)        Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR          Fax:   +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa         Email: address@hidden
Web: http://fly.isti.cnr.it/           Key:   fly.isti.cnr.it/public.key


reply via email to

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