cosh and sinh returning infinity
mtaylor
//x is calculated
if(x>710)
x=710
endif
y = cosh(x)
if(x>710)
x=710
endif
y = cosh(x)
Is there a better way to do this? Currently, I am sacrificing some speed in order to pull it off.
EDIT: I forgot to add, that x is a complex value.
EDIT 2: I also forgot to add that x is a wave of complex values
EDIT 3: After some testing, I realized this doesn't actually work. Back to the drawing board.
http://www.igorexchange.com/node/780
However, it isn't working.
•print w
w[0]= {0,0,0,0,...}
•w = w[p]==0 ? NaN : w[p]
•print w
w[0]= {NaN,NaN,NaN,NaN,...}
•w = w[p]==NaN ? 0: w[p]
•print w
w[0]= {NaN,NaN,NaN,NaN,...}
I can replace 0 with NaN (as in the help example for ? :
However, I cannot replace NaN with 0. What am I missing here?
Is there a way to check for and replace NaN?
August 3, 2012 at 08:32 am - Permalink
or the equivalent:
August 3, 2012 at 08:44 am - Permalink
August 3, 2012 at 08:57 am - Permalink