Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
In Mathcad Prime I am unable to divide the expression by zero is there any alternate method available?
@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.
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
Of course you can replace the text with any number or NaN - whatever seems appropriate in this situation.