/third_party/jerryscript/tests/jerry/es2015/ |
D | math-expm1.js | 23 assert(isNaN(Math.expm1(NaN))); 24 assert(isSameZero(Math.expm1(p_zero), p_zero)); 25 assert(isSameZero(Math.expm1(n_zero), n_zero)); 26 assert(Math.expm1(Number.POSITIVE_INFINITY) === Number.POSITIVE_INFINITY); 27 assert(Math.expm1(Number.NEGATIVE_INFINITY) === -1); 28 assert(1/Math.expm1(-0) === Number.NEGATIVE_INFINITY) 29 assert(1/Math.expm1(0) === Number.POSITIVE_INFINITY) 30 assert(Math.expm1(1) <= 1.00000001 * (Math.E - 1)); 31 assert(Math.expm1(1) >= 0.99999999 * (Math.E - 1));
|
/third_party/python/Lib/test/ |
D | math_testcases.txt | 446 -- expm1: exp(x) - 1, without precision loss for small x -- 450 expm10000 expm1 0.0 -> 0.0 451 expm10001 expm1 -0.0 -> -0.0 452 expm10002 expm1 inf -> inf 453 expm10003 expm1 -inf -> -1.0 454 expm10004 expm1 nan -> nan 456 -- expm1(x) ~ x for tiny x 457 expm10010 expm1 5e-324 -> 5e-324 458 expm10011 expm1 1e-320 -> 1e-320 459 expm10012 expm1 1e-300 -> 1e-300 [all …]
|
/third_party/boost/boost/math/special_functions/ |
D | expm1.hpp | 91 expm1(T(0.5)); in do_init() 95 expm1(T(0.5)); in do_init() 271 inline typename tools::promote_args<T>::type expm1(T x, const Policy& /* pol */) in expm1() function 297 #ifdef expm1 301 # undef expm1 306 inline float expm1(float x, const policies::policy<>&){ return ::expm1f(x); } in expm1() function 308 inline long double expm1(long double x, const policies::policy<>&){ return ::expm1l(x); } in expm1() function 311 inline float expm1(float x, const policies::policy<>&){ return static_cast<float>(::expm1(x)); } in expm1() function 313 inline double expm1(double x, const policies::policy<>&){ return ::expm1(x); } in expm1() function 317 inline typename tools::promote_args<T>::type expm1(T x) in expm1() function [all …]
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_expm1_op.py | 30 self.expm1 = P.Expm1() 33 return self.expm1(x) 40 expm1 = NetExpm1() 42 output = expm1(Tensor(x, dtype=dtype.float32)) 43 expect = np.expm1(x) 51 expm1 = NetExpm1() 53 output = expm1(Tensor(x, dtype=dtype.float16)) 54 expect = np.expm1(x)
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_expm1_op.py | 31 self.expm1 = P.Expm1() 34 return self.expm1(x) 44 expm1 = NetExpm1() 45 output_x = expm1(Tensor(x, dtype=dtype.float32)) 46 expect_x = np.expm1(x) 50 output_y = expm1(Tensor(y, dtype=dtype.float16)) 51 expect_y = np.expm1(y)
|
/third_party/boost/libs/math/reporting/performance/ |
D | test_expm1.cpp | 28 …screen_data([](const std::vector<double>& v){ return boost::math::expm1(v[0]); }, [](const std::… in main() 32 …screen_data([](const std::vector<double>& v){ return ::expm1(v[0]); }, [](const std::vector<doub… in main() 35 …screen_data([](const std::vector<double>& v){ return std::tr1::expm1(v[0]); }, [](const std::vec… in main() 42 …double time = exec_timed_test([](const std::vector<double>& v){ return boost::math::expm1(v[0]); … in main() 54 …double time = exec_timed_test([](const std::vector<double>& v){ return boost::math::expm1(v[0], b… in main() 65 time = exec_timed_test([](const std::vector<double>& v){ return ::expm1(v[0]); }); in main() 70 time = exec_timed_test([](const std::vector<double>& v){ return std::tr1::expm1(v[0]); }); in main()
|
/third_party/boost/libs/math/test/ |
D | log1p_expm1_test.hpp | 49 funcp = boost::math::expm1<value_type>; in do_test() 51 funcp = boost::math::expm1; in do_test() 75 BOOST_CHECK_EQUAL(boost::math::expm1(zero), zero); in test() 79 BOOST_CHECK_EQUAL(boost::math::expm1(T(-std::numeric_limits<T>::infinity())), m_one); in test() 80 …BOOST_CHECK_EQUAL(boost::math::expm1(std::numeric_limits<T>::infinity()), std::numeric_limits<T>::… in test() 88 …BOOST_MATH_CHECK_THROW(boost::math::expm1(std::numeric_limits<T>::infinity(), pol()), std::overflo… in test()
|
D | test_remez.cpp | 28 double (*f)(double) = boost::math::expm1<double>; in test_polynomial() 30 double (*f)(double) = boost::math::expm1; in test_polynomial() 112 double (*f)(double) = boost::math::expm1<double>; in test_rational() 114 double (*f)(double) = boost::math::expm1; in test_rational()
|
D | test_autodiff_7.cpp | 20 BOOST_CHECK_CLOSE(boost::math::expm1(make_fvar<T, m>(x)).derivative(0u), in BOOST_AUTO_TEST_CASE_TEMPLATE() 21 boost::math::expm1(x), in BOOST_AUTO_TEST_CASE_TEMPLATE()
|
/third_party/jerryscript/tools/unit-tests/ |
D | gen-test-libm.c | 400 GEN_DBL_TEST (expm1 (0.0)); in main() 401 GEN_DBL_TEST (expm1 (-0.0)); in main() 402 GEN_DBL_TEST (expm1 (1.0)); in main() 403 GEN_DBL_TEST (expm1 (-1.0)); in main() 404 GEN_DBL_TEST (expm1 (INFINITY)); in main() 405 GEN_DBL_TEST (expm1 (-INFINITY)); in main() 406 GEN_DBL_TEST (expm1 (NAN)); in main() 407 GEN_DBL_TEST (expm1 (7.08e+02)); in main() 408 GEN_DBL_TEST (expm1 (7.10e+02)); in main() 409 GEN_DBL_TEST (expm1 (-7.40e+02)); in main() [all …]
|
/third_party/jerryscript/tests/unit-libm/ |
D | test-libm.inc.h | 289 check_double ("expm1 (0.0)", expm1 (0.0), 0.00000000000000000000E+00); 290 check_double ("expm1 (-0.0)", expm1 (-0.0), -0.00000000000000000000E+00); 291 check_double ("expm1 (1.0)", expm1 (1.0), 1.71828182845904531284E+00); 292 check_double ("expm1 (-1.0)", expm1 (-1.0), -6.32120558828557665976E-01); 293 check_double ("expm1 (INFINITY)", expm1 (INFINITY), INF); 294 check_double ("expm1 (-INFINITY)", expm1 (-INFINITY), -1.00000000000000000000E+00); 295 check_double ("expm1 (NAN)", expm1 (NAN), NAN); 296 check_double ("expm1 (7.08e+02)", expm1 (7.08e+02), 3.02338314427605515848E+307); 297 check_double ("expm1 (7.10e+02)", expm1 (7.10e+02), INF); 298 check_double ("expm1 (-7.40e+02)", expm1 (-7.40e+02), -1.00000000000000000000E+00); [all …]
|
/third_party/boost/libs/math/test/compile_test/ |
D | sf_expm1_incl_test.cpp | 18 check_result<float>(boost::math::expm1<float>(f)); in compile_and_link_test() 19 check_result<double>(boost::math::expm1<double>(d)); in compile_and_link_test() 21 check_result<long double>(boost::math::expm1<long double>(l)); in compile_and_link_test()
|
/third_party/boost/libs/math/tools/ |
D | generate_test_values.cpp | 19 mp_t expm1(mp_t arg) in expm1() function 35 std::cout << " { " << r << "L, " << log1p(r) << "L, " << expm1(r) << "L, }, \n"; in main() 36 std::cout << " { " << -r << "L, " << log1p(-r) << "L, " << expm1(-r) << "L, }, \n"; in main()
|
/third_party/musl/porting/liteos_a/kernel/src/math/ |
D | tanh.c | 27 t = expm1(2*x); in tanh() 32 t = expm1(2*x); in tanh() 36 t = expm1(-2*x); in tanh()
|
D | expm1l.c | 55 return expm1(x); in expm1l() 121 return expm1(x); in expm1l()
|
/third_party/musl/src/math/ |
D | tanh.c | 27 t = expm1(2*x); in tanh() 32 t = expm1(2*x); in tanh() 36 t = expm1(-2*x); in tanh()
|
D | expm1l.c | 55 return expm1(x); in expm1l() 121 return expm1(x); in expm1l()
|
/third_party/boost/libs/config/test/ |
D | boost_has_expm1.ipp | 9 // TITLE: expm1 10 // DESCRIPTION: The std lib has a C99-conforming expm1 function. 19 x = ::expm1(x);
|
/third_party/boost/libs/math/doc/sf/ |
D | powers.qbk | 122 [section:expm1 expm1] 125 #include <boost/math/special_functions/expm1.hpp> 131 ``__sf_result`` expm1(T x); 134 ``__sf_result`` expm1(T x, const ``__Policy``&); 146 in catastrophic cancellation errors when /x/ is small. `expm1` calculates __exm1 using 154 The following graph illustrates the behaviour of expm1: 156 [graph expm1] 160 For built in floating point types `expm1` 170 [endsect] [/section:expm1 expm1] 239 Implemented in terms of `log1p` and `expm1`. [all …]
|
/third_party/jerryscript/jerry-libm/ |
D | tanh.c | 98 t = expm1 (two * fabs (x)); in tanh() 103 t = expm1 (-two * fabs (x)); in tanh()
|
/third_party/boost/boost/math/quadrature/detail/ |
D | ooura_fourier_integrals_detail.hpp | 24 using std::expm1; in ooura_eta() 35 eta = 2*x - alpha*expm1(-x) + expm1(x)/4; in ooura_eta() 55 using std::expm1; in ooura_sin_node_and_weight() 83 Real expm1_meta = expm1(-eta); in ooura_sin_node_and_weight() 135 using std::expm1; in ooura_cos_node_and_weight() 144 Real expm1_meta = expm1(-eta); in ooura_cos_node_and_weight()
|
/third_party/musl/libc-test/src/api/ |
D | tgmath.c | 111 #ifdef expm1 in f() 112 {double r = expm1(x);} in f() 114 #error no expm1(x) in f()
|
/third_party/boost/libs/math/src/tr1/ |
D | expm1f.cpp | 16 return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
|
D | expm1.cpp | 16 return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
|
D | expm1l.cpp | 16 return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
|