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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

"This variable is undefined" bug in Mathcad Prime 8

Kristian
2-Guest

"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

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

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

 

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

 

Top Tags