[Gretl-users] bessel functions

Klein, Christoph christoph.klein at student.kit.edu
Wed Jun 17 17:20:57 EDT 2009

I wrote a mail yesterday, but somehow it got lost?! I'm working on the bessel code right now. The attached patch implements a bessel function which can be called like this:
bessel(<type>, <order>, <value>) example bessel("K",0.5,1).
the function works for J,I,K,Y bessel functions. For K bessel there was no support for fractional orders in cephes, thats why there is additonal code for these cases. the fractional order for k and negative orders for I work reasonably well in the range lambda<10 and value<20. The attached test script checks against the implementation of R.
It's already quite late here. If you have questions or sugestions I will be glad to answer them tomorrow in the morning!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gretl.patch
Type: text/x-patch
Size: 9421 bytes
Desc: gretl.patch
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20090617/a9c39dc1/gretl-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.inp
Type: chemical/x-gamess-input
Size: 1756 bytes
Desc: test2.inp
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20090617/a9c39dc1/test2-0001.bin

More information about the Gretl-users mailing list