Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Buy Mathcad Now
• View Mathcad Pricing
•  Download a Demo
•  Request a Brochure
• Download a Brochure
• Find out about Training
• Meet Our Team
• Read our RSS Feeds

Learn More

Mathcad Home
Mathcad Prime 2.0
Migration Guide

Version Comparison Chart
Mathcad Enterprise
Mathcad for Education
Rave Reviews
Add-ons

System Requirements

Latest Information

New Features in Mathcad
Prime 2.0

Mathcad Prime 2.0 movies
Using Mathcad and Excel
Return on Investment

Service & Support

Frequently Asked
Questions

Search the Knowledge
Base

Join the Discussion List
Search the List Archive

List Archives >  Mathcad List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[mathcad] RE: Mathcad bug or programming error?

Search email archive for  

[mathcad] RE: Mathcad bug or programming error?
Author: Bury, Scott SJ    Posted: Mon, 28 Jan 2008 12:07:08 -0600
I get the same behavior in v13.


Best Regards,
Scott
(979)-238-1832





________________________________

From:
Sent: Monday, January 28, 2008 7:11 AM
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





---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] RE: Mathcad bug or programming error?
Author: Stuart Bruff    Posted: Mon, 28 Jan 2008 18:29:39 -0000
Andy

You've overloaded phi as the end matrix name and the inner summation vector
- use a MathStyle to distinguish between the two.

Stuartr

-----Original Message-----
From:
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


--
This message has been scanned for viruses and
dangerous content by <http://www.houxou.com/> Houxou, and is
believed to be clean.

 Attachments:
 sumbug1.mcd


[mathcad] Re: Mathcad bug or programming error?
Author: Tom Gutman    Posted: Mon, 28 Jan 2008 21:08:29 -0800
It's a programming error. In the first expression phi is reset to a
scalar in the inner loop, hence all the previous columns are lost.

Tom Gutman


----- Original Message -----
From: /> To: Mathcad Discussion List /> Sent: Monday, January 28, 2008 5:11 AM
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
>
>
> ****************************************************************
> 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
> ****************************************************************
>


---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] RE: Mathcad bug or programming error?
Author: Neil Harris    Posted: Tue, 29 Jan 2008 08:36:44 -0000
Hi Andy,



Sorry, but it's a programming error. You use phi as the dummy variable
in the sum loop and as the vector collecting the results. If you change
the name of the dummy variable, it works OK.



Neil





________________________________

From:
Sent: 28 January 2008 13: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



---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] Re: Mathcad bug or programming error?
Author: William J Marshall    Posted: Mon, 28 Jan 2008 14:37:51 -0500
Hello Andy,

Well it sure looks like a bug. Here's a clue: I got function 1 to behave
normally by simply replacing the internal variable phi (f CTRL-G) by a
non-Greek variable name. What does that say?

I hope this helps,
Bill





01/28/2008 12:59 PM
Please respond to
/>

To
Mathcad Discussion List /> cc

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
[attachment "sumbug.mcd" deleted by William J Marshall/RES/Raytheon/US]


---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] RE: Mathcad bug or programming error?
Author: Pergande, Albert N    Posted: Mon, 28 Jan 2008 13:48:07 -0500
one difference is in the left function, j goes 2 to I, and inthe right,
it goes 2 to I-1


Al Pergande
Senior Radar Engineer
Lockheed Martin Missiles and Fire Control
MP 200
5600 Sandlake Road
Orlando, Fl 32819

Voice 407-356-5169
Fax 407-356-0933
/> for personal mail - />



________________________________

From:
Sent: Monday, January 28, 2008 8:11 AM
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




---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] Re: Mathcad bug or programming error?
Author: Chris Whitford    Posted: Tue, 29 Jan 2008 09:32:25 +0000
In f1 you have used the variable phi twice. In the innermost loop (j)
change phi to a different name, and all works as expected.

Chris

At 13:11 28/01/2008 +0000, you wrote:

>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
>


+------------------+
+ Chris Whitford
+ Research Fellow, University of Leicester, Space Research Centre,
+ Physics and Astronomy Department, University Road, LEICESTER LE1 7RH, UK
+ Tel: +44 116 252 3496, Fax: +44 116 252 2464
+ email: http://www.star.le.ac.uk/
+ ------------------+


---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[mathcad] RE: Mathcad bug or programming error?
Author: Pergande, Albert N    Posted: Mon, 28 Jan 2008 15:03:25 -0500
Your problem seems to be in assigning "phi s" to "phi super s". Every
time you make the assignment with a new values of S, you create a new
phi with a single column vector. I suggest you do phi <-- augment (phi,
phi s) You will need to create a dummy vector phi, or handle the column
0 case as an exception.


Al Pergande
Senior Radar Engineer
Lockheed Martin Missiles and Fire Control
MP 200
5600 Sandlake Road
Orlando, Fl 32819

Voice 407-356-5169
Fax 407-356-0933
/> for personal mail - />



________________________________

From:
Sent: Monday, January 28, 2008 8:11 AM
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




---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

[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: />
internet: http://www.inf.wur.nl/ <http://www.inf.wur.nl/>




________________________________

From:
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


[mathcad] Re: Mathcad bug or programming error?
Author: Eden Mei    Posted: Mon, 28 Jan 2008 11:12:39 -0800
Looks to me like a programming error. The line immediately following the rnorm is loada the array with zeros, but you do this on every iteration, so every iteration, the array is again zeroed, until the last iteration, when columns 10 and 11 get populated but not zeroed. This is something that you don't do at all in the second program, so your claim of them being trivially different is not. Part of the problem is that you're using the same variable in two different places for two different things.
----- Original Message -----
From:
To: Mathcad Discussion List
Sent: Monday, January 28, 2008 5:11 AM
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



---
The Mathcad List - Discussion, Support & News
Contributions: /> Hosted by: Adept Scientific http://www.adeptscience.com
List Archive: http://lists.adeptscience.co.uk/
---
Would you like this to come to a different email address?
---
Simply leave the mailing list (see below) and re-join by
sending a blank email from the new address to:
or
---
If you do not want to be on the Mathcad list, simply send a
blank email (no subject or message needed) to:
/>

Previous by date: [mathcad] Mathcad bug or programming error?, Andy Spragg
Next by date: [mathcad] RE: Mathcad bug or programming error?,  Stuart Bruff
Previous thread: [mathcad] Re: Spam appearing to come from List, Paul Bragg
Next thread: [mathcad] RE: Mathcad bug or programming error?,  Bury, Scott SJ



Ready to buy?

Mathcad Prime
Add to shopping basket
£ 970.00
Upgrade to Mathcad Prime from v14
Add to shopping basket
£ 220.00
Upgrade to Mathcad Prime from v11, v12, v13
Add to shopping basket
£ 290.00

Featured Downloads

Mathcad Prime 2.0 Brochure
Mathcad Prime 2.0 Installation and Usage Information
Mathcad Prime 2.0 Installation and Administration Guide
Mathcad Prime 2.0 Keyboard Shortcuts
Mathcad Prime 2.0 Migration Guide
Mathcad Prime 2.0 FAQs

Latest Downloads

Mathcad Prime 2.0 - 64 Bit Demo
Mathcad Prime 2.0 - 32 Bit Demo
Mathcad Prime 2.0 Installation and Usage Information
Mathcad Version Comparison Chart
Application Example: Faster Physical Modelling for Mathcad users

Latest News

"I've been using Mathcad since 1995 and I really love using it because it is the most optimal engineering tool.
“Greater flexibility, ease of use, an intuitive layout,...
“Every engineer and mathematics-oriented professional should consider...
“If you are looking to save engineering hours by standardising your company reports with clearly defined calculations and professional formatting,
PTC adds powerful new capabilities to Mathcad
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2012, Adept Scientific plc.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055