Skip to main content
19-Tanzanite
September 23, 2024
Solved

Plot failed to show after I added else NaN

  • September 23, 2024
  • 2 replies
  • 674 views

Hi,

Why without adding that else NaN at the final the plot is showing the waveform, but after that else NaN was added at the final of the function then the plot failed?

 

Cornel_1-1727084760618.png

 

Cornel_2-1727084797132.png

Best answer by terryhendicott

Need mutually exclusive if branches or it always retuns NAN's at t<=2a

Capture.JPG

2 replies

21-Topaz II
September 23, 2024

Need mutually exclusive if branches or it always retuns NAN's at t<=2a

Capture.JPG

25-Diamond I
September 23, 2024

I find it easier to use explicit return statements.

Werner_E_0-1727121183101.png