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

Expression divided by zero

JH_9781973
5-Regular Member

Expression divided by zero

In Mathcad Prime I am unable to divide the expression by zero is there any alternate method available?

2 REPLIES 2


@JH_9781973 wrote:

In Mathcad Prime I am unable to divide the expression by zero is there any alternate method available?

 

 

Check for alpha2 being zero before doing the division.   I've set an arbitrary value (0) for K2 when alpha2 is zero, just to plot it nicely.

 

2022 04 07 f.png

 

Alternatively, define your own division function that handles the situation.

 

Stuart

 

(Note: the attached file is in Prime 8 format, as is the original)

You may also use "try ... on error ..." to deal with the situation

Werner_E_0-1650975179886.png

Of course you can replace the text with any number or NaN - whatever seems appropriate in this situation.

 

Top Tags