3 #include "CLHEP/GenericFunctions/Variable.hh" 4 #include "CLHEP/GenericFunctions/Power.hh" 5 #include <gsl/gsl_sf_legendre.h> 13 FUNCTION_OBJECT_IMP(AssociatedLegendre)
22 AssociatedLegendre::AssociatedLegendre(
unsigned int l,
unsigned int m):
31 AssociatedLegendre::~AssociatedLegendre() {
35 AssociatedLegendre::AssociatedLegendre(
const AssociatedLegendre & right):
43 unsigned int AssociatedLegendre::l()
const {
48 unsigned int AssociatedLegendre::m()
const {
54 double AssociatedLegendre::operator() (
double x)
const {
56 int status = gsl_sf_legendre_Plm_e (_l, _m, x, &result);
59 std::cerr <<
"Warning, GSL function gsl_sf_bessel_Yn_impl" 60 <<
" return code" << status << std::endl;