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

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

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)

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

Top Tags