/*********************************************************************** * * * Program to calculate the second kind Bessel function of integer * * order N, for any REAL X, using the function BESSY(N,X). * * * * -------------------------------------------------------------------- * * * * SAMPLE RUN: * * * * (Calculate Bessel function for N=2, X=0.75). * * * * Second kind Bessel function of order 2 for X = 0.7500: * * * * Y = -2.62974604 * * * * -------------------------------------------------------------------- * * Reference: From Numath Library By Tuan Dang Trong in Fortran 77. * * * * C++ Release 1.0 By J-P Moreau, Paris. * * (www.jpmoreau.fr) * ***********************************************************************/ #include #include double BESSJ0 (double X) { /*********************************************************************** This subroutine calculates the First Kind Bessel Function of order 0, for any real number X. The polynomial approximation by series of Chebyshev polynomials is used for 0