while useful these are extremely hard to read functions. I have been having problems with mchgu for vectorised inputs. This appears to be due to the logic choices for high and low arguments not working for vectorised x.
For instance
mchgu(11,1/2,[-100,100]) =
1.0e-21 *[-0.4281 0.0320]
gives the correct answer, where as
mchgu(11,1/2,[-100,0,100] =
1.0e+46 * [5.3505 - 4.4981i 0.0000 -4.9590 ]
is wrong by many many orders of magnitude.
Essentially it works fine for single arguments but not vectors.
4
18 Dec 2011
Computation of Special Functions
MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions."
I tried the Associated Legendre Function for complex arguments and it is helpful, thanks.
But it seems to have a little flaw. When displaying the calculated values, it just displays only the real part of the answer, although the answer is complex. It might be helpful if you alter it, so that others can use it without checking it. Please let me know, if I have missed or misunderstood anything regarding that answer being complex.
Anyway Great work.
Comment only
19 Jan 2010
Computation of Special Functions
MATLAB translation (via f2matlab) of the original FORTRAN of "Computation of Special Functions."
Comment only