/*---------------------------------------------------------------------------* * IT++ * *---------------------------------------------------------------------------* * Copyright (c) 1995-2003 by Tony Ottosson, Thomas Eriksson, Pål Frenger, * * Tobias Ringström, and Jonas Samuelsson. * * * * Permission to use, copy, modify, and distribute this software and its * * documentation under the terms of the GNU General Public License is hereby * * granted. No representations are made about the suitability of this * * software for any purpose. It is provided "as is" without expressed or * * implied warranty. See the GNU General Public License for more details. * *---------------------------------------------------------------------------*/ /*! \file \brief Implementation of Bessel functions. \author Tony Ottosson 1.13 2003/05/22 08:55:18 */ #include //#include //This line is needed for the Sun WorkShop Compiler 5.0 (CC). Dunno why... (PF 2001-12-03) #include "base/bessel.h" #include "../src/base/bessel/bessel_internal.h" namespace itpp { #ifndef DOXYGEN_SHOULD_SKIP_THIS #endif /* DOXYGEN_SHOULD_SKIP_THIS */ // Bessel function of order nu double besselj(int nu, double x) { return jn(nu, x); } vec besselj(int nu, const vec &x) { vec out(x.size()); for (int i=0; i