1 // (C) 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)
6 #ifndef BOOST_MATH_TEST_NCCS_OTHER_HOOKS_HPP
7 #define BOOST_MATH_TEST_NCCS_OTHER_HOOKS_HPP
11 #define MATHLIB_STANDALONE
14 inline float nccs_cdf(float df, float nc, float x)
16 return (float)pnchisq(x, df, nc, 1, 0);
18 inline double nccs_cdf(double df, double nc, double x)
20 return pnchisq(x, df, nc, 1, 0);
22 inline long double nccs_cdf(long double df, long double nc, long double x)
24 return pnchisq((double)x, (double)df, (double)nc, 1, 0);
33 inline double nccs_cdf(double df, double nc, double x)
35 int kind(1), status(0);
36 double p, q, bound(0);
37 cdfchn(&kind, &p, &q, &x, &df, &nc, &status, &bound);
40 inline float nccs_cdf(float df, float nc, float x)
42 return (double)nccs_cdf((double)df, (double)nc, (double)x);
44 inline long double nccs_cdf(long double df, long double nc, long double x)
46 return nccs_cdf((double)df, (double)nc, (double)x);
54 boost::math::concepts::real_concept nccs_cdf(boost::math::concepts::real_concept, boost::math::concepts::real_concept, boost::math::concepts::real_concept){ return 0; }