1 // Copyright John Maddock 2008.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #ifndef BOOST_MATH_TR1_SOURCE
8 # define BOOST_MATH_TR1_SOURCE
10 #include <boost/math/tr1.hpp>
11 #include <boost/math/special_functions/legendre.hpp>
12 #include "c_policy.hpp"
14 extern "C" long double BOOST_MATH_TR1_DECL boost_assoc_legendrel
BOOST_PREVENT_MACRO_SUBSTITUTION(unsigned l
, unsigned m
, long double x
) BOOST_MATH_C99_THROW_SPEC
16 return (m
&1 ? -1 : 1) * c_policies::legendre_p
BOOST_PREVENT_MACRO_SUBSTITUTION(l
, m
, x
);