vnl_bessel.h
Go to the documentation of this file.
1 // This is core/vnl/vnl_bessel.h
2 #ifndef vnl_bessel_h_
3 #define vnl_bessel_h_
4 //:
5 // \file
6 // \brief Bessel functions of the first kind
7 // \author Tim Cootes
8 
9 #include <vnl/vnl_vector.h>
10 #include "vnl/vnl_export.h"
11 
12 //: Returns J_n(x), the value of the Bessel function of order n at x
13 // Bessel function of the first kind of order n
14 VNL_EXPORT double vnl_bessel(unsigned n, double x);
15 
16 //: Returns J_0(x), the value of the Bessel function of order 0 at x
17 // Bessel function of the first kind of order zero
18 VNL_EXPORT double vnl_bessel0(double x);
19 
20 //: Compute Bessel functions of first kind up to order n_max
21 // On exit, J[i] = J_i(x) for i=0..n_max
22 VNL_EXPORT void vnl_bessel(unsigned n_max, double x, vnl_vector<double>& J);
23 
24 #endif // vnl_bessel_h_
VNL_EXPORT double vnl_bessel(unsigned n, double x)
Returns J_n(x), the value of the Bessel function of order n at x.
Definition: vnl_bessel.cxx:69
VNL_EXPORT double vnl_bessel0(double x)
Returns J_0(x), the value of the Bessel function of order 0 at x.
Definition: vnl_bessel.cxx:45