• Home
  • Raw
  • Download

Lines Matching refs:eps

41   const T eps = 201 * std::numeric_limits<T>::epsilon(); // percent  in BOOST_AUTO_TEST_CASE_TEMPLATE()  local
59 BOOST_CHECK_CLOSE(z1.derivative(0u, 0u), pow(cx, cy), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
61 BOOST_CHECK_CLOSE(z1.derivative(0u, j), pow(log(cx), j) * pow(cx, cy), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
73 BOOST_CHECK_CLOSE(z2.derivative(0u, j), pow(cx, cy) * pow(log(cx), j), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
79 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
82 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
85 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
91 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
97 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
102 const T eps = 4000 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
204 BOOST_CHECK_CLOSE(z.derivative(i, j), mathematica[k++], eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
272 const T eps = 100 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
289 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
292 pow(-1, i - 1) * boost::math::factorial<T>(i - 1) / pow(cx, i), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
304 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
339 const T eps = 200 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
344 BOOST_CHECK_CLOSE(cos5.derivative(0u), cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
345 BOOST_CHECK_CLOSE(cos5.derivative(1u), -sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
346 BOOST_CHECK_CLOSE(cos5.derivative(2u), -cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
347 BOOST_CHECK_CLOSE(cos5.derivative(3u), sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
348 BOOST_CHECK_CLOSE(cos5.derivative(4u), cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
349 BOOST_CHECK_CLOSE(cos5.derivative(5u), -sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
351 BOOST_CHECK_CLOSE(sin5.derivative(0u), sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
352 BOOST_CHECK_CLOSE(sin5.derivative(1u), cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
353 BOOST_CHECK_CLOSE(sin5.derivative(2u), -sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
354 BOOST_CHECK_CLOSE(sin5.derivative(3u), -cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
355 BOOST_CHECK_CLOSE(sin5.derivative(4u), sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
356 BOOST_CHECK_CLOSE(sin5.derivative(5u), cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
359 BOOST_CHECK_CLOSE(cos0.derivative(0u), cos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
361 BOOST_CHECK_CLOSE(sin0.derivative(0u), sin(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
365 const T eps = 300 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
373 BOOST_CHECK_CLOSE(y.derivative(0u), acos(cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
374 BOOST_CHECK_CLOSE(y.derivative(1u), -1 / sqrt(1 - cx * cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
375 BOOST_CHECK_CLOSE(y.derivative(2u), -cx / pow(1 - cx * cx, 1.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
377 -(2 * cx * cx + 1) / pow(1 - cx * cx, 2.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
379 -3 * cx * (2 * cx * cx + 3) / pow(1 - cx * cx, 3.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
382 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
386 const T eps = 300 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
394 BOOST_CHECK_CLOSE(y.derivative(0u), acosh(static_cast<T>(x)), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
396 1 / boost::math::constants::root_three<T>(), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
398 -2 / (3 * boost::math::constants::root_three<T>()), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
400 1 / boost::math::constants::root_three<T>(), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
402 -22 / (9 * boost::math::constants::root_three<T>()), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
405 2 * eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
409 const T eps = 300 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
417 BOOST_CHECK_CLOSE(y.derivative(0u), asin(static_cast<T>(x)), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
418 BOOST_CHECK_CLOSE(y.derivative(1u), 1 / sqrt(1 - cx * cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
419 BOOST_CHECK_CLOSE(y.derivative(2u), cx / pow(1 - cx * cx, 1.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
421 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
423 3 * cx * (2 * cx * cx + 3) / pow(1 - cx * cx, 3.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
426 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
430 const T eps = 100 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
437 eps); // MacOS is not exact in BOOST_AUTO_TEST_CASE_TEMPLATE()
442 const T eps = 300 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
456 BOOST_CHECK_CLOSE(y.derivative(1u), -cx / sqrt(1 - cx * cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
457 BOOST_CHECK_CLOSE(y.derivative(2u), -1 / pow(1 - cx * cx, 1.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
458 BOOST_CHECK_CLOSE(y.derivative(3u), -3 * cx / pow(1 - cx * cx, 2.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
460 -(12 * cx * cx + 3) / pow(1 - cx * cx, 3.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
462 BOOST_CHECK_CLOSE(y.derivative(0u), 1 / sqrt(1 - cx * cx), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
463 BOOST_CHECK_CLOSE(y.derivative(1u), cx / pow(1 - cx * cx, 1.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
465 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
467 3 * cx * (2 * cx * cx + 3) / pow(1 - cx * cx, 3.5), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
470 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
474 const T eps = 300 * std::numeric_limits<T>::epsilon(); // percent in BOOST_AUTO_TEST_CASE_TEMPLATE() local
480 BOOST_CHECK_CLOSE(y.derivative(0u), asinh(static_cast<T>(x)), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
482 eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
484 -1 / (2 * boost::math::constants::root_two<T>()), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
486 1 / (4 * boost::math::constants::root_two<T>()), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
488 3 / (8 * boost::math::constants::root_two<T>()), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()
490 -39 / (16 * boost::math::constants::root_two<T>()), eps); in BOOST_AUTO_TEST_CASE_TEMPLATE()