PsiLAB Help Manual Page

Section: Special Functions

Name: Bessel

Bessel functions.
This module provides several Bessel functions of arbitrary order:

All functions expect complex arguments z and return a complex number:
[ y:float ] = Bessel.y (z:Complex.t) (nu:float)
[ h:float ] = Bessel.h (z:Complex.t) (nu:float) (k:int)
[ i:float ] = Bessel.i (z:Complex.t) (nu:float)
[ j:float ] = Bessel.j (z:Complex.t) (nu:float)
[ k:float ] = Bessel.k (z:Complex.t) (nu:float)

Derived from the AMOS library.
Examples:
[] let y0 = fun x -> 
	 let (re,im) = Bessel.y (x,0.0) 0.0 in 
	 re ;; 
val y0 : float -> float = <fun> 
[] let y1 = fun x -> 
	 let (re,im) = Bessel.y (x,0.0) 1.0 in 
	 re ;; 
val y2 : float -> float = <fun> 
[] let y1 = fun x -> 
	 let (re,im) = Bessel.y (x,0.0) 2.0 in 
	 re ;; 
val y2 : float -> float = <fun> 
[] plot2d ~xrange:[0.3;10.1] ~func:[y0;y1;y2] () ;; 

Printed by PsiLAB