boost::math::tools::test_result<value_type> result;
std::cout << "Testing " << test_name << " with type " << type_name
- << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
+ << "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
//
// test tgamma against data:
//
result = boost::math::tools::test_hetero<Real>(
- data,
- bind_func<Real>(funcp, 0),
- extract_result<Real>(1));
+ data,
+ bind_func<Real>(funcp, 0),
+ extract_result<Real>(1));
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::tgamma", test_name);
//
#if defined(BOOST_MATH_NO_DEDUCED_FUNCTION_POINTERS)
funcp = boost::math::lgamma<value_type>;
#else
- funcp = boost::math::lgamma;
+ funcp = boost::math::lgamma;
#endif
result = boost::math::tools::test_hetero<Real>(
- data,
- bind_func<Real>(funcp, 0),
- extract_result<Real>(2));
+ data,
+ bind_func<Real>(funcp, 0),
+ extract_result<Real>(2));
handle_test_result(result, data[result.worst()], result.worst(), type_name, "boost::math::lgamma", test_name);
std::cout << std::endl;
template <class T>
void test_gamma(T, const char* name)
{
-# include "gamma.ipp"
+#include "gamma.ipp"
do_test_gamma<T>(gamma, name, "random values");
-# include "gamma_1_2.ipp"
+#include "gamma_1_2.ipp"
do_test_gamma<T>(gamma_1_2, name, "Values near 1 and 2");
-# include "gamma_0.ipp"
+#include "gamma_0.ipp"
do_test_gamma<T>(gamma_0, name, "Values near 0");
-# include "gamma_neg.ipp"
+#include "gamma_neg.ipp"
do_test_gamma<T>(gamma_neg, name, "Negative arguments");
-
}
-
-