Re: Does the order matter to add a sequence of floating numbers
- From: Ed Prochak <edprochak@xxxxxxxxx>
- Date: Tue, 30 Oct 2007 18:01:23 -0000
On Oct 30, 12:10 pm, JosephLee <shoupe...@xxxxxxxxx> wrote:
Let's say float arr[100], we want to add them up, does the order
matter? what is the different between arr[0] +..+ arr[99], and
arr[99]+...+arr[0]?
What programming language?
C or ADA might show different limits than LISP or APL
What hardware platform?
(a 6502 or 8051 may show the problem more easily than a recent
pentium or power PC)
As long as you are dealing with finite precision arithmetic there are
limits. IOW round off errors.
The topic you should look up is Numerical Methods.
HTH,
Ed
.
- References:
- Does the order matter to add a sequence of floating numbers
- From: JosephLee
- Does the order matter to add a sequence of floating numbers
- Prev by Date: Re: Does the order matter to add a sequence of floating numbers
- Next by Date: Re: Does the order matter to add a sequence of floating numbers
- Previous by thread: Re: Does the order matter to add a sequence of floating numbers
- Next by thread: Re: Does the order matter to add a sequence of floating numbers
- Index(es):
Relevant Pages
|