Skip to main content
1-Visitor
April 27, 2010
Question

Bug with 'In-Line' definition and evaluation

  • April 27, 2010
  • 4 replies
  • 5243 views
I have found what appears to be a bug with definition and evaluation within the same statement ("In-Line Definition and Evaluation"), if vectors are used. (This affects only MC 14 as far-as I know, as earlier versions did not support "In-Line" definition and evaluation in a single statement.)

It seems that if you define and then evaluate a vector of parameters in a single statement, and change the displayed units of the evaluation, you get incorrect results when the vector is referenced later. If you define on one line, then evaluate on a separate line (changing units in the "evaluation" statement), as per MC 13 and earlier limitations, it works fine.

See attached sample file, which replicates the same set of simple calculations, the first time not using "In-Line" definition and evaluation, the second time using "In-Line" definition and evaluation. It seems that in the second example, changing the displayed units from default "m/s" to "km/hr", changes the numerical values in the underlying vector, but does not update the units. As a result, all later references to the Velocity vector yield incorrect results.

Is this a known bug? The work-around is straight-forward enough (don't use in-line definition and evaluation of vectors), but this could be a real problem for anyone who has been using in-line definition and evaluation in any worksheets which use vectors. (Like me!)

4 replies

jhardy1-VisitorAuthor
1-Visitor
April 27, 2010
Thanks all for your feedback.

I am running Mathcad 14.0.0.163 (build 701291152). I don't know what the latest patch is. I will have to try to get my IT support team to get the latest patch, but I don't know how successful I will be - we only have a few copies of Mathcad scattered among a select few users, and it is not one of our "core" Enterprise-wide supported applications. I don't think we have active maintenance agreements on Mathcad. Is there some way I can download the patch without an active support agreement? (The link that Mona provided doesn't work for me: "Document not found" error.)

@ Val: Please see attached screen copy of my bug - hopefully this issue can be resolved if I can somehow get the patch to the latest version.

@ jmg: Thanks for the update about v8 having the capability of in-line definition & evaluation. I wonder why they took it out in later versions?

Thanks again, everyone!
19-Tanzanite
April 28, 2010
On 4/27/2010 7:55:41 PM, jhardy wrote:
> (The link
>that Mona provided doesn't
>work for me: "Document not
>found" error.)

It's PTC's crappy web site. It's a valid page, but the link doesn't work. The web site is also a nightmare to navigate. Go to the PTC web site, Click on "support" at the top, then "Mathcad" on the "left", then the "single user" tab in the middle of the page", then scroll down until you see "Download Mathcad Updates". Click on that. At some point in that process it will prompt you to log in, and if you don't have an account you will have to create one.

Richard
1-Visitor
April 27, 2010
On 4/27/2010 4:11:46 AM, jhardy wrote:
...
>(This affects only
>MC 14 as far-as I know, as
>earlier versions did not
>support "In-Line" definition
>and evaluation in a single
>statement.)
_____________________________

Mathcad 8, 2001i, 11 [probably 2000, 2001]
DID SUPPORT in-line definition, see attached.

jmG


April 27, 2010
This was a known bug in the early releases of v14. Have you installed the latest service release?

Preston
1-Visitor
April 27, 2010
You can download updates to Mathcad 11 through 14 at http://www.ptc.com/support/mathcad_downloads.htm


Mona
1-Visitor
April 27, 2010
On 4/27/2010 2:43:39 PM, MonaZ wrote
>You can download updates to
>Mathcad 11 through 14 at
>http://www.ptc.com/support/mathcad_downloads.htm

>Mona

In fact, the PTC download link is broken.
24-Ruby IV
April 27, 2010
Sorry, I do not see any error in my Mathcad 14. Send please the picture of your Mathcad 14!
Val
http://twt.mpei.ac.ru/ochkov/v_ochkov.htm