 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] Mathcad bug or programming error?
| [mathcad] Mathcad bug or programming error? |
|
Author: Andy Spragg
Posted: Mon, 28 Jan 2008 13:11:15 +0000
|
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
****************************************************************
Any opinions expressed in this email are those of the individual and not necessarily of RHM Limited and/or any of its subsidiaries.
This email and any files transmitted with it are private, may be confidential and are for the intended recipient only. If you are not the intended recipient, be advised that you have received them in error. Please notify the sender of the error, delete all copies of them from your system and destroy any printed copies.
If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this email and any files transmitted with it.
Please rely on your own anti-virus system. No responsibility is taken by RHM Limited and/or any of its subsidiaries for any damage arising out of any bug or virus infection.
Registered Office : Premier House, Centrium Business Park, Griffiths Way, St Albans, Hertfordshire, AL1 2RE
Registered No. 3946774
****************************************************************
|
| [mathcad] RE: [MathCAD] MathCAD bug or programming error? |
|
Author: Philip Oakley
Posted: Mon, 28 Jan 2008 21:27:05 -0000
|
The version f1 has two variables called phi(?) (Greek j) so in the inner
loop you are overwriting the values on the outer loop!
Se the value of S to 1 and 2 to see the effect.
Then rename the inner variable to some other Greek letter
Philip Oakley CEng MIET
From: "Andy.Spragg" "mailto:Andy.Spragg"
Sent: 28 January 2008 1:11 PM
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
|
Previous by date: [mathcad] Re: Spam appearing to come from List, Paul Bragg
Next by date: [mathcad] RE: Mathcad bug or programming error?, Bury, Scott SJ
Previous thread: [mathcad] Spam appearing to come from List, Stuart Bruff
Next thread: [mathcad] RE: Mathcad bug or programming error?, Bury, Scott SJ
|
|
|