Skip to main content
13-Aquamarine
January 13, 2020
Solved

Retrieve varning for solution that is outside an accepeted range

  • January 13, 2020
  • 2 replies
  • 1523 views

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.

Best answer by LucMeekes

Two (of the many) possible ways:

LucMeekes_1-1578935710618.png

Success!
Luc

2 replies

23-Emerald I
January 13, 2020

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.

LucMeekes23-Emerald IVAnswer
23-Emerald IV
January 13, 2020

Two (of the many) possible ways:

LucMeekes_1-1578935710618.png

Success!
Luc