translating equation to mathcad prime
Jan 12, 2023
04:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 12, 2023
04:13 AM
translating equation to mathcad prime
Hello, can anyone help me write this in mathcad prime? Can't seem to place "otherwise" in my equation
Labels:
- Labels:
-
Mathcad Usage
2 REPLIES 2
Jan 12, 2023
04:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 12, 2023
04:45 AM
Use an "else" instead of "otherwise".
It would look like this:
Some remarks:
- You may omit Xi and use the calculated expression directly in the comparison
- function argument etao is neverused, so it could be omitted
- the assignment to a local(!) variable p in the last line is not necessary and useless
So it could also be written as
And if you like you may also use the if-function instead
And because program execution exits after a "return" statement, you may also write
Jan 12, 2023
01:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 12, 2023
01:44 PM
One more option:
If you have the (original) mathcad ( .mcd or .xmcd) file that contains the function, then use Prime's built in converter to translate it to Prime.
Success!
Luc
