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

Prime 3.0, correct format for NaN?

SOLVED
Participant

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

Re: Prime 3.0, correct format for NaN?

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

1.png

4 REPLIES 4

Re: Prime 3.0, correct format for NaN?

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

1.png

Highlighted

Re: Prime 3.0, correct format for NaN?

As always, thank you Werner.

Re: Prime 3.0, correct format for NaN?

Alternatively :

kkkk := 2 - IsNaN(k.FBeam1)

Re: Prime 3.0, correct format for NaN?

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