# definition of mathematical helper functions # # AUTHOR: Hagen Wierstorf # degree to radian conversion rad(phi) = phi/180.0*pi # radian to degree conversion deg(phi) = phi/pi*180.0 # Bessel functions (after Bronstein 2001, eq. 9.54a) # besj0(x) and besj1(x) are build-in functions besj2(x) = 2*1/x * besj1(x) - besj0(x) besj3(x) = 2*2/x * besj2(x) - besj1(x) besj4(x) = 2*3/x * besj3(x) - besj2(x) besj5(x) = 2*4/x * besj4(x) - besj3(x) besj6(x) = 2*5/x * besj5(x) - besj4(x)