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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Retrieve varning for solution that is outside an accepeted range

jfransson
12-Amethyst

Retrieve varning for solution that is outside an accepeted range

Hi.

Does any one in the forum know if Mathcad can be used to evalate a result and report if the solution is placed outside a predefined range.

 

For example. I expect to recieve a result between 1 and 5. If the result ends up in a value of e.g. 10 I want to be able to read that the result is out of range. Preferably in a warning message.

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:jfransson)

Two (of the many) possible ways:

LucMeekes_1-1578935710618.png

Success!
Luc

View solution in original post

2 REPLIES 2

You can do this with a boolean test in an if statement.  Mathcad will not pop up a warning message as if a system error had occurred.

LucMeekes
23-Emerald III
(To:jfransson)

Two (of the many) possible ways:

LucMeekes_1-1578935710618.png

Success!
Luc

Top Tags