 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] RE: Mathcad bug or programming error?
| [mathcad] RE: Mathcad bug or programming error? |
|
Author: Zijp, Maarten
Posted: Tue, 29 Jan 2008 09:45:40 +0100
|
Hi Andy,
Sorry to say but to my opinion it is a simple programming error. Inside
both for loops you initiliaze your result matrix therefore you will
loose all results from pass 1 upto S-1. Mathcad cannot be blamed this
time...
So, use another variable to store the intermediate results, I used t.
You might also considere to either change the upper range of iteration
variable j to I-1 as is the case in version two or adapt the upper range
for j in function f2 in the summation......
kind regards
Maarten Zijp
Maarten Zijp
room 5045
Information Technology Group
Leerstoelgroep Toegepaste Informatiekunde
Social Sciences Group
Wageningen University
Leeuwenborch (Building 201)
Hollandseweg 1
6706 KN Wageningen
The Netherlands
tel (0)317-484079 fax(0)317-483158
E-mail: "maarten.zijp"
internet: http://www.inf.wur.nl/ <http://www.inf.wur.nl/>
________________________________
From: "Andy.Spragg" "mailto:Andy.Spragg"
Sent: 28 January 2008 14:11
To: Mathcad Discussion List
Subject: [mathcad] Mathcad bug or programming error?
Hi folks,
The attached v11 worksheet contains two versions of a program, that I
believe to be trivially different. The output from the two versions is
utterly different. I spent altogether too long trying to find the error
of my ways in one version, before scraping the barrel of reformulation
and finding it not to be empty after all.
I seek opinions on whether the difference in output is due to Mathcad
bug or programming error. If the former is the case, it is a pretty
toxic bug (which may of course have long since been squashed). Can
anyone please either point out my error, or test these programs in the
current version of Mathcad?
Andy
|
|
Attachments:
Outlook.jpg
|
[View Complete Thread]
Previous by date: [mathcad] RE: Mathcad bug or programming error?, Pergande, Albert N
Next by date: [mathcad] RE: [MathCAD] MathCAD bug or programming error?, Philip Oakley
Previous thread: [mathcad] Mathcad bug or programming error?, Andy Spragg
Next thread: [mathcad] Mathcad bug or programming error?, Andy Spragg
|
|
|