Path: news.mathworks.com!not-for-mail
From: "Ana-Maria Cuculescu" <amcuculescu@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: adding order matters for accuracy ?
Date: Tue, 15 Sep 2009 01:27:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <h8mqh5$pgb$1@fred.mathworks.com>
Reply-To: "Ana-Maria Cuculescu" <amcuculescu@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1252978021 26123 172.30.248.37 (15 Sep 2009 01:27:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 Sep 2009 01:27:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 861616
Xref: news.mathworks.com comp.soft-sys.matlab:570380

Does the order in which we add numbers affect the accuracy of the result in Matlab?

For example, if I add 

1/1 + 1/2 + ... + 1/100000 in this order

and, then, if I add

1/100000 + 1/2 + ... + 1/1 in this order

will the adding order generate errors from the point of view of accuracy?

Thank you.