Re: Does the order matter to add a sequence of floating numbers



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

.



Relevant Pages

  • Re: Rebuilding functions at run-time
    ... itself (and also would prove the power of Lisp, I'm trying to push mi ... limits a bit here and learn something valuable) ...
    (comp.lang.lisp)
  • Re: Rebuilding functions at run-time
    ... itself (and also would prove the power of Lisp, I'm trying to push mi ... limits a bit here and learn something valuable) ...
    (comp.lang.lisp)
  • Re: Making Lisp popular - can it be done?
    ... But let’s remember that the Lisp vendors grew into their markets. ... their lisp without any limits for noncommercial USE for free. ... it is also misleading because Scieneer ... commercial or academic use, and many such licenses have been issued, ...
    (comp.lang.lisp)