cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Prime 3.0, correct format for NaN?

dsochor
5-Regular Member

Prime 3.0, correct format for NaN?

I am a recent convert from MathCad 15 to Prime 3.0. In the attached Prime 3.0 worksheet, what is the correct formatting for stating if a variable is not an answer (NaN) to set a variable to one value, and if it is an answer to set it to another variable?

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:dsochor)

You do it the same way in Prime as you did in Mathcad - you use the built-in boolean function IsNaN(...).

1.png

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:dsochor)

You do it the same way in Prime as you did in Mathcad - you use the built-in boolean function IsNaN(...).

1.png

dsochor
5-Regular Member
(To:Werner_E)

As always, thank you Werner.

athurin
4-Participant
(To:Werner_E)

Alternatively :

kkkk := 2 - IsNaN(k.FBeam1)

Werner_E
25-Diamond I
(To:athurin)

Adrien Thurin wrote:

Alternatively :

kkkk := 2 - IsNaN(k.FBeam1)

Or as a vector index, so you still have a free choice which value to assign in either case:

1.png

Announcements

Top Tags