November 13th, 2006, 1:16 pm
QuoteOriginally posted by: badgerbadgerThanks INFIDEL and ppauper but using I_nu(z) = Exp(-i nu Pi/2) J_nu(z Exp(-i Pi/2)), as long as -Pi < arg z <= Pi/2.the problem still remains... the argument is still complex and I can't find any code for J_nu(z) as well... ?"argument" is being used in 2 senses here and we're talking at cross purposes.the "argument" of J_nu(z) is z.the "argument" of a complex number z, arg zis a number such that z= |z| exp(i arg z), so tan(arg z)=y/xWhat folks are telling you is the code for real z can also be used for complex z, provided that z is in the correct region of the complex plane.The only change you need to make is declare the variables as complex