Expression divided by zero
Apr 07, 2022
01:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Apr 07, 2022
01:53 PM
Expression divided by zero
In Mathcad Prime I am unable to divide the expression by zero is there any alternate method available?
Labels:
- Labels:
-
Mathcad Usage
2 REPLIES 2
Apr 07, 2022
02:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Apr 07, 2022
02:16 PM
@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)
Apr 26, 2022
08:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Apr 26, 2022
08:13 AM
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.
