Re: [R] Bessel functions of complex argument

2008-03-13 Thread baptiste AuguiƩ
Many thanks for this information! I'm pretty sure Matlab can handle complex argument in besselj, although i haven't checked myself, < http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/ access/helpdesk/help/techdoc/ref/besselj.html > After some more thinking, it turns out my cod

Re: [R] Bessel functions of complex argument

2008-03-10 Thread Robin Hankin
Hello Baptiste Bessel functions with complex arguments are not supported in R. Neither matlab nor the Gnu Scientific Library support them either. . . . but . . . the pari/gp system (released on the GPL) does: ? besselj(1+I,3) %3 = 0.6919067491368555819808728680 + 0.4484268613977010268818252

[R] Bessel functions of complex argument

2008-03-09 Thread baptiste AuguiƩ
Dear R users, I'm porting a piece of Matlab code to R, but I'm now stuck with the following: I need an equivalent of besselJ(x, nu) that can handle a complex argument x. I couldn't find any R implementation. I did find a possible fortran solution in SLATEC (< http://www.netlib.org/slatec/