math/test/compile_test/sf_bessel_deriv_incl_test.cpp
2014-01-21 19:08:14 +00:00

54 lines
2.2 KiB
C++

// Copyright John Maddock 2006.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Basic sanity check that header <boost/math/special_functions/bessel.hpp>
// #includes all the files that it needs to.
//
#include <boost/math/special_functions/bessel_prime.hpp>
//
// Note this header includes no other headers, this is
// important if this test is to be meaningful:
//
#include "test_compile_result.hpp"
void compile_and_link_test()
{
check_result<float>(boost::math::cyl_bessel_j_prime<float>(f, f));
check_result<double>(boost::math::cyl_bessel_j_prime<double>(d, d));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
check_result<long double>(boost::math::cyl_bessel_j_prime<long double>(l, l));
#endif
check_result<float>(boost::math::cyl_neumann_prime<float>(f, f));
check_result<double>(boost::math::cyl_neumann_prime<double>(d, d));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
check_result<long double>(boost::math::cyl_neumann_prime<long double>(l, l));
#endif
check_result<float>(boost::math::cyl_bessel_i_prime<float>(f, f));
check_result<double>(boost::math::cyl_bessel_i_prime<double>(d, d));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
check_result<long double>(boost::math::cyl_bessel_i_prime<long double>(l, l));
#endif
check_result<float>(boost::math::cyl_bessel_k_prime<float>(f, f));
check_result<double>(boost::math::cyl_bessel_k_prime<double>(d, d));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
check_result<long double>(boost::math::cyl_bessel_k_prime<long double>(l, l));
#endif
check_result<float>(boost::math::sph_bessel_prime<float>(u, f));
check_result<double>(boost::math::sph_bessel_prime<double>(u, d));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
check_result<long double>(boost::math::sph_bessel_prime<long double>(u, l));
#endif
check_result<float>(boost::math::sph_neumann_prime<float>(u, f));
check_result<double>(boost::math::sph_neumann_prime<double>(u, d));
#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
check_result<long double>(boost::math::sph_neumann_prime<long double>(u, l));
#endif
}