/third_party/boost/libs/math/test/ |
D | test_difference.cpp | 26 BOOST_CHECK_EQUAL(relative_difference(val, next), tools::max_value<T>()); in test_value() 31 BOOST_CHECK_EQUAL(relative_difference(val, prev), tools::max_value<T>()); in test_value() 35 BOOST_CHECK_EQUAL(relative_difference(val, next), relative_difference(next, val)); in test_value() 37 BOOST_CHECK_LE(relative_difference(val, next), boost::math::tools::epsilon<T>()); in test_value() 41 BOOST_CHECK_GT(relative_difference(val, next), T(0)); in test_value() 46 BOOST_CHECK_EQUAL(relative_difference(val, next), T(0)); in test_value() 50 BOOST_CHECK_EQUAL(relative_difference(val, prev), relative_difference(prev, val)); in test_value() 54 BOOST_CHECK_GT(relative_difference(val, prev), T(0)); in test_value() 59 BOOST_CHECK_EQUAL(relative_difference(val, prev), T(0)); in test_value() 124 …BOOST_CHECK_EQUAL(relative_difference(tools::min_value<T>(), -tools::min_value<T>()), tools::max_v… in test_values() [all …]
|
D | test_pFq.hpp | 75 T err = boost::math::relative_difference(result, expect); in check_pFq_result()
|
/third_party/boost/libs/math/example/ |
D | float_comparison_example.cpp | 33 using boost::math::relative_difference; in main() 73 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main() 100 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main() 123 std::cout << "relative_difference = " << relative_difference(b, a) << std::endl; in main() 143 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main() 145 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main() 146 std::cout << "relative_difference = " << relative_difference(a, -b) << std::endl; in main() 167 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main() 191 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main() 197 std::cout << "relative_difference = " << relative_difference(a, b) << std::endl; in main()
|
D | gauss_example.cpp | 56 …std::cout << boost::math::relative_difference(Q, (boost::math::constants::pi<double>() - 2 + 2 * b… in gauss_examples() 59 …std::cout << boost::math::relative_difference(Q2, (boost::math::constants::pi<cpp_bin_float_quad>(… in gauss_examples() 94 std::cout << boost::math::relative_difference(Q, Q_expected) << std::endl; in gauss_kronrod_examples() 101 std::cout << boost::math::relative_difference(Q, Q_expected) << std::endl; in gauss_kronrod_examples() 115 std::cout << boost::math::relative_difference(Q, Q_expected) << std::endl; in gauss_kronrod_examples() 127 std::cout << boost::math::relative_difference(Q, Q_expected) << std::endl; in gauss_kronrod_examples()
|
D | lambert_w_precision_example.cpp | 110 using boost::math::relative_difference; in main() 133 … std::cout << "relative difference from Halley step = " << relative_difference(w, ww) << std::endl; in main() 161 using boost::math::relative_difference; in main() 184 … std::cout << "relative difference from Halley step = " << relative_difference(w, ww) << std::endl; in main()
|
/third_party/boost/libs/math/test/compile_test/ |
D | sf_relative_distance_incl_test.cpp | 18 check_result<float>(boost::math::relative_difference<float>(f, f)); in compile_and_link_test() 19 check_result<double>(boost::math::relative_difference<double>(d, d)); in compile_and_link_test() 21 check_result<long double>(boost::math::relative_difference<long double>(l, l)); in compile_and_link_test()
|
D | instantiate.hpp | 370 boost::math::relative_difference(v1, v2); in instantiate() 568 boost::math::relative_difference(v1 * 1, v2 * 1); in instantiate()
|
/third_party/boost/boost/math/special_functions/ |
D | relative_difference.hpp | 17 …typename boost::math::tools::promote_args<T,U>::type relative_difference(const T& arg_a, const U& … in relative_difference() function 74 …inline boost::math::tools::promote_args<double, double>::type relative_difference(const double& ar… in relative_difference() function 126 result_type r = relative_difference(arg_a, arg_b); in epsilon_difference()
|
D | math_fwd.hpp | 1055 typename tools::promote_args<T, U>::type relative_difference(const T&, const U&);
|
/third_party/boost/libs/multiprecision/example/ |
D | mpfr_precision.cpp | 231 … std::cout << "Relative error: " << boost::math::relative_difference(v1, true_value) << std::endl; in main() 237 … std::cout << "Relative error: " << boost::math::relative_difference(v2, true_value) << std::endl; in main() 243 … std::cout << "Relative error: " << boost::math::relative_difference(v3, true_value) << std::endl; in main()
|
/third_party/boost/libs/math/doc/fp_utilities/ |
D | float_comparison.qbk | 38 …ocumented below: if `float_distance` is a surgeon's scalpel, then `relative_difference` is more li… 43 `#include <boost/math/special_functions/relative_difference.hpp>` 46 ``__sf_result`` relative_difference(T a, U b); 51 The function `relative_difference` returns the relative distance/error ['E] between two values as d… 55 The function `epsilon_difference` is a convenience function that returns `relative_difference(a, b)…
|
/third_party/boost/libs/math/doc/graphs/ |
D | bessel_i0_errors.cpp | 43 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type() 90 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type()
|
D | bessel_i1_errors.cpp | 43 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type() 94 …mp_type err = boost::math::relative_difference(result2, mp_type(result)) / mp_type(std::numeric_li… in test_type()
|
/third_party/boost/libs/math/reporting/performance/ |
D | performance.hpp | 48 double err = boost::math::relative_difference(computed, expected); in screen_data()
|
/third_party/boost/libs/math/include_private/boost/math/tools/ |
D | test.hpp | 65 return boost::math::relative_difference(a, b); in relative_error()
|
/third_party/boost/libs/math/tools/ |
D | lanczos_generator.cpp | 4749 R err = boost::math::relative_difference(gamr, expected); in get_max_error() 4778 T err = boost::math::relative_difference(expected, found); in get_max_error_sterling()
|