Skip to main content
1-Visitor
February 26, 2016
Question

Need advice plz how to manage the NaN in the condition

  • February 26, 2016
  • 8 replies
  • 3422 views

Hey,

community.

I could manage so far the loadcaseprogramming but i have a problem how to get rid with the "NaN" value.

At Page 8 of the mathcad file i need the smalest safety factor which i calculate out of the 5 Calculations.

BUT WITHOUT THE NAN VALUE. When i do a minimum it shows me always a 0 when NaN occurs anywhere,

How Can i write the condition with excluding a zero result?

I just want to see the minimum safety factor without the zero.

Is there a Possibility to comprimise my programmcode?

Best thx 😃

8 replies

25-Diamond I
February 27, 2016

Can you guarantee that all the values Re.Ti, i=1,2,3,4,5 are positive (apart from the possibility of being NaN)?

Then a very easy solution is available (-> look for the negative max of the values -Re.Ti)

Otherwise a three-line routine could be used:

R

1-Visitor
February 27, 2016

Hmm maybe i described little wrong:

its about the safety factors on Page 8

I need the smallest safety factor i calculate out of the 5.

When i do the negativ maximum im getting the highest value of the safety factor.

I need to look of the smallest safety factor excluding the NaN

1-Visitor
February 27, 2016

im always getting the Zero as minimal value and not the smallest of the other one hmm 😞