sf_performance_nct.cpp 902 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. ///////////////////////////////////////////////////////////////
  2. // Copyright 2011 John Maddock. Distributed under the Boost
  3. // Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
  5. #include "sf_performance.hpp"
  6. void nct_tests_1();
  7. void nct_tests_2();
  8. void nct_tests_3();
  9. void nct_tests_4();
  10. void nct_tests_5();
  11. void nct_tests_6();
  12. void nct_tests()
  13. {
  14. //
  15. // 50 digits first:
  16. //
  17. std::cout << "Testing Non-Central T at 50 digits....." << std::endl;
  18. #ifdef TEST_MPFR_CLASS
  19. mpfr_set_default_prec(50 * 1000L / 301L);
  20. #endif
  21. nct_tests_1();
  22. nct_tests_2();
  23. nct_tests_3();
  24. //
  25. // Then 100 digits:
  26. //
  27. std::cout << "Testing Non-Central T at 100 digits....." << std::endl;
  28. #ifdef TEST_MPFR_CLASS
  29. mpfr_set_default_prec(100 * 1000L / 301L);
  30. #endif
  31. nct_tests_4();
  32. nct_tests_5();
  33. nct_tests_6();
  34. }