• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
6 #include "sf_performance.hpp"
7 
8 void bessel_tests_01();
9 void bessel_tests_02();
10 void bessel_tests_03();
11 void bessel_tests_04();
12 void bessel_tests_05();
13 void bessel_tests_06();
14 void bessel_tests_07();
15 void bessel_tests_08();
16 void bessel_tests_09();
17 void bessel_tests_10();
18 void bessel_tests_11();
19 void bessel_tests_12();
20 void bessel_tests_13();
21 void bessel_tests_14();
22 void bessel_tests_15();
23 void bessel_tests_16();
24 void bessel_tests_17();
25 void bessel_tests_18();
26 void bessel_tests_19();
27 
bessel_tests()28 void bessel_tests()
29 {
30    //
31    // 50 digits first:
32    //
33    std::cout << "Testing Bessel Functions at 50 digits....." << std::endl;
34 #if defined(TEST_MPFR) || defined(TEST_MPFR_CLASS)
35    mpfr_set_default_prec(50 * 1000L / 301L);
36 #endif
37 #ifdef TEST_MPREAL
38    mpfr::mpreal::set_default_prec(50 * 1000L / 301L);
39 #endif
40 
41    bessel_tests_01();
42    bessel_tests_02();
43    bessel_tests_03();
44    bessel_tests_04();
45    bessel_tests_05();
46    bessel_tests_06();
47    bessel_tests_07();
48    bessel_tests_08();
49    bessel_tests_09();
50    bessel_tests_10();
51 
52    //
53    // Then 100 digits:
54    //
55    std::cout << "Testing Bessel Functions at 100 digits....." << std::endl;
56 #if defined(TEST_MPFR) || defined(TEST_MPFR_CLASS)
57    mpfr_set_default_prec(100 * 1000L / 301L);
58 #endif
59    bessel_tests_11();
60    bessel_tests_12();
61    bessel_tests_13();
62    bessel_tests_14();
63    bessel_tests_15();
64    bessel_tests_16();
65    bessel_tests_17();
66    bessel_tests_18();
67    bessel_tests_19();
68 }
69