Skip to main content
19-Tanzanite
May 9, 2013
Solved

Undefined variable problem

  • May 9, 2013
  • 3 replies
  • 4172 views

When I use a numeric assignment with a symbolic evaluation I now get an undefined variable error. I am amazed I haven't noticed this before, and I am wondering when the bug cropped up. I'm running MC15 M020. Could someone with M010 check, and see if they get the same error.

Best answer by AndyWesterman

Hi,

Not sure what result you get in M020 but Mathcad version (M010 [MC15_M010_20110622]) gives this:Capture.PNG

Hope this is informative

Regards

Andy

3 replies

25-Diamond I
May 9, 2013

I noticed that effect, too, but wasn't sure if its a new bug. Isn't this the "normal" behaviour of the numeric proc. choking on symbolic evals?

h is getting its symbolic value anyway and if you assign parameters to h even the numeric processor is happy

invlapl1.png

RichardJ19-TanzaniteAuthor
19-Tanzanite
May 9, 2013

It didn't always do this. I just checked MC13, and the evaluation with numeric assignment works fine (of course it gives an undefined variable error, but the symbolic result is displayed).

Good observation that h is actually getting the result though. That's probably why I haven't noticed it. I open up an older worksheet wiith something like this in it, and the end result works OK, so I never noticed the change in behavior. I guess I can work with it this way, but it's annoying.

12-Amethyst
May 9, 2013

Hi,

Not sure what result you get in M020 but Mathcad version (M010 [MC15_M010_20110622]) gives this:Capture.PNG

Hope this is informative

Regards

Andy

RichardJ19-TanzaniteAuthor
19-Tanzanite
May 9, 2013

Thanks. I get the same in M020, which I only installed recently. I am amazed I didn't notice it in M010. When did this bug get introduced? Anyone out there with version 14 installed that could try it (I know it works fine in MC13 and earlier, because I tried it)?

25-Diamond I
May 9, 2013

As Andy (on contrary to MC15M020) is shown a result in MC15M010, it seems this was introduced with M020.

What I have noticed sometimes, especially with larger symbolic results in that situation was, that the result would be suddenly seen when I move the expression a bit. It did however not work with your file.

24-Ruby III
May 9, 2013

Result in Mathcad Prime 2.0 M010 version after conversion of worksheet:

Pic_1.PNG