cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

"This variable is undefined" bug in Mathcad Prime 8

Kristian
2-Explorer

"This variable is undefined" bug in Mathcad Prime 8

I recently went from Mathcad Prime version 5 to 8, and now I often see errors like "This variable is undefined", where a variable seems to be undefined.

Kristian_0-1679482982342.png

However, if I put the Symbolic Evaluation arrow in the line with the definition of f(t) in the first line, the "This variable is undefined" error disappears, and I can plot the function and so on.

Can anyone please tell me what is going on? 

I teach engineering math, and my students are getting more and more frustrated about Mathcad Prime

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Kristian)

Can you post the worksheet?!

When I retype your expressions (in Prime 9), no error occurs.

Chances are that when you edit an expression a few times or copy part of it from somewhere else, the labelling of variables may change.

So check, if ALL occurrences of the variable "n" (also the one under sum symbol) are labelled the very same. After retyping your expressions these are all labelled as "(-)" (meaning automatic). If one of them is labelled as "(variable)" this will throw the error. If all are labelled as "(variable)" Prime would be happy as well.
Its annoying but auto-labelling does not work that well in Prime and ever so often you have to re-label variables manually.

Werner_E_0-1679484053391.png

 

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:Kristian)

Can you post the worksheet?!

When I retype your expressions (in Prime 9), no error occurs.

Chances are that when you edit an expression a few times or copy part of it from somewhere else, the labelling of variables may change.

So check, if ALL occurrences of the variable "n" (also the one under sum symbol) are labelled the very same. After retyping your expressions these are all labelled as "(-)" (meaning automatic). If one of them is labelled as "(variable)" this will throw the error. If all are labelled as "(variable)" Prime would be happy as well.
Its annoying but auto-labelling does not work that well in Prime and ever so often you have to re-label variables manually.

Werner_E_0-1679484053391.png

 

Kristian
2-Explorer
(To:Werner_E)

Hi Werner

Thanks! Changing the n variable under the sum did the work.

Super annoying and very unintuitive error.

LucMeekes
23-Emerald III
(To:Kristian)

Super annoying, and counter-intuitive, I agree.

But it helps a lot if you change the font/appearance of each of the different labels.

I use:

LucMeekes_0-1679596225331.png

which has the added benefit that units are displayed as they should, according to ISO 80000.

 

Success!

Luc

ttokoro
20-Turquoise
(To:Kristian)

RMS value.

image.png

 

Announcements

Top Tags