[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Zero or not?
From: |
kensmith |
Subject: |
Re: Zero or not? |
Date: |
Mon, 23 Jul 2007 07:29:35 -0700 |
User-agent: |
KMail/1.9.1 |
On Sunday 22 July 2007 22:42, Miroslaw Kwasniak wrote:
> On Mon, Jul 23, 2007 at 01:24:03AM +0200, Francesco Potorti` wrote:
> > >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])).
>
> I'm not a numerical expert ;)
>
> I think your expression is an average error.
> A bound should be like this:
>
> N*eps*max(abs(x))
With "sticky bits", the error is slightly less than this because it
breaks the tie on rounding 0.5 in favor of the direction that tends to
reduce the error. On the x86 machines, there is another consideration.
So long as the numbers stay in the floating point unit, they are kept
in an internal 80 bit format.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
--
address@hidden
- Re: Zero or not?, (continued)
- Re: Zero or not?, Francesco Potorti`, 2007/07/23
- Re: Zero or not?, James Sherman Jr., 2007/07/23
- Re: Zero or not?, Miroslaw Kwasniak, 2007/07/23
- Re: Zero or not?, Francesco Potorti`, 2007/07/24
- Re: Zero or not?, kensmith, 2007/07/24
- Re: Zero or not?, Przemek Klosowski, 2007/07/24
- Re: Zero or not?, kensmith, 2007/07/24
- Re: Zero or not?, Francesco Potorti`, 2007/07/22
- Re: Zero or not?, Miroslaw Kwasniak, 2007/07/23
- Re: Zero or not?, Francesco Potorti`, 2007/07/23
- Re: Zero or not?,
kensmith <=
- Re: Zero or not?, Przemek Klosowski, 2007/07/23
- Re: Zero or not?, Robert A. Macy, 2007/07/21
Re: Zero or not?, Bob Weigel, 2007/07/21