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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

Hiding Mathcad Warnings

netoprax
10-Marble

Hiding Mathcad Warnings

I need to print and add to word these mathcad calcs with a bunch of warnings saying that the variable is undefined since these are all symbolic calculations:

CN_13593194_0-1754927572192.png

so i am not assigning a value to any of these variables at any point.

surprisingly to me when I print, they all come like this:

CN_13593194_1-1754927675082.png

 

how can I get mathcad not to display these messages and highlights?

 

edit: I went here, and tried selecting/unselecting everything and no luck:

CN_13593194_0-1754927823455.png

 

 

 

ACCEPTED SOLUTION

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

Mathcad started as a pure number cruncher and the symbolics was added via a third party software only later. This still applies to Prime.

What you see are not warnings but rather error messages from Prime's native numeric engine. Error message can't be suppressed even though they don't affect symbolic calculations.

Werner_E_6-1754930304897.png

 

I can only see two way to avoid these errors and both may not be entirely desirable for you.

 

1) Follow each assignment which may throw a numerical error by a symbolic evaluation. Drawback is that the assigned expression now is shown twice

Werner_E_5-1754930284200.png

 

Already defined variables are replaced by their actual values unless you use the modifier "explicit" like

Werner_E_7-1754930339574.png

 

 

2) Define functions instead of variables using unknowns. Even if this may be the correct approach from a mathematical point of view, things can quickly become very confusing when there are many unknowns involved.

Werner_E_8-1754930404803.png

 

 

A third approach would be using sort of cheating and is not recommended as its quite failure prone.

You could use the Boolean equal for documentation and the actual assignments which throw the errors may be hidden in a collapsed area or to the right of the right margin where they are not printed.

Werner_E_9-1754930746724.png

 

EDIT: Here is fourth approach coming to my mind. It works if you never intend to numerically evaluate the variables in use (which you can't do anyway as the variables used are not defined).

You define all variables with dummy values and then clear them, but just for symbolic use. You can again hide the variable definitions in a collapsed region or to the far right.

Werner_E_1-1754935224745.png

The numeric evaluation in the last line shows that the variables have kept their numeric value for numeric calculations which is the reason why the numeric engine isn't throwing any errors.

 

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:netoprax)

Mathcad started as a pure number cruncher and the symbolics was added via a third party software only later. This still applies to Prime.

What you see are not warnings but rather error messages from Prime's native numeric engine. Error message can't be suppressed even though they don't affect symbolic calculations.

Werner_E_6-1754930304897.png

 

I can only see two way to avoid these errors and both may not be entirely desirable for you.

 

1) Follow each assignment which may throw a numerical error by a symbolic evaluation. Drawback is that the assigned expression now is shown twice

Werner_E_5-1754930284200.png

 

Already defined variables are replaced by their actual values unless you use the modifier "explicit" like

Werner_E_7-1754930339574.png

 

 

2) Define functions instead of variables using unknowns. Even if this may be the correct approach from a mathematical point of view, things can quickly become very confusing when there are many unknowns involved.

Werner_E_8-1754930404803.png

 

 

A third approach would be using sort of cheating and is not recommended as its quite failure prone.

You could use the Boolean equal for documentation and the actual assignments which throw the errors may be hidden in a collapsed area or to the right of the right margin where they are not printed.

Werner_E_9-1754930746724.png

 

EDIT: Here is fourth approach coming to my mind. It works if you never intend to numerically evaluate the variables in use (which you can't do anyway as the variables used are not defined).

You define all variables with dummy values and then clear them, but just for symbolic use. You can again hide the variable definitions in a collapsed region or to the far right.

Werner_E_1-1754935224745.png

The numeric evaluation in the last line shows that the variables have kept their numeric value for numeric calculations which is the reason why the numeric engine isn't throwing any errors.

 

 

The third solution works for me

luckily it is not a very long file so it's easy to adjust!

 

thank you

Announcements

Top Tags