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 poly_tests_01(); 9 void poly_tests_02(); 10 void poly_tests_03(); 11 void poly_tests_04(); 12 void poly_tests_05(); 13 void poly_tests_06(); 14 void poly_tests_07(); 15 void poly_tests_08(); 16 void poly_tests_09(); 17 void poly_tests_10(); 18 void poly_tests_11(); 19 void poly_tests_12(); 20 void poly_tests_13(); 21 void poly_tests_14(); 22 void poly_tests_15(); 23 void poly_tests_16(); 24 void poly_tests_17(); 25 void poly_tests_18(); 26 poly_tests()27void poly_tests() 28 { 29 // 30 // 50 digits first: 31 // 32 std::cout << "Testing Polynomial Evaluation at 50 digits....." << std::endl; 33 #if defined(TEST_MPFR) || defined(TEST_MPFR_CLASS) 34 mpfr_set_default_prec(50 * 1000L / 301L); 35 #endif 36 #ifdef TEST_MPREAL 37 mpfr::mpreal::set_default_prec(50 * 1000L / 301L); 38 #endif 39 poly_tests_01(); 40 poly_tests_02(); 41 poly_tests_03(); 42 poly_tests_04(); 43 poly_tests_05(); 44 poly_tests_06(); 45 poly_tests_07(); 46 poly_tests_08(); 47 poly_tests_09(); 48 // 49 // Then 100 digits: 50 // 51 std::cout << "Testing Polynomial Evaluation at 100 digits....." << std::endl; 52 #ifdef TEST_MPFR_CLASS 53 mpfr_set_default_prec(100 * 1000L / 301L); 54 #endif 55 #ifdef TEST_MPREAL 56 mpfr::mpreal::set_default_prec(100 * 1000L / 301L); 57 #endif 58 poly_tests_10(); 59 poly_tests_11(); 60 poly_tests_12(); 61 poly_tests_13(); 62 poly_tests_14(); 63 poly_tests_15(); 64 poly_tests_16(); 65 poly_tests_17(); 66 poly_tests_18(); 67 } 68