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

Expression divided by zero

JH_9781973
6-Contributor

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
StuartBruff
23-Emerald III
(To:JH_9781973)


@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)

Werner_E
25-Diamond I
(To:JH_9781973)

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.

 

Announcements

Top Tags