Home
last modified time | relevance | path

Searched refs:expm1 (Results 1 – 25 of 176) sorted by relevance

12345678

/third_party/jerryscript/tests/jerry/es2015/
Dmath-expm1.js23 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/
Dmath_testcases.txt446 -- 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/
Dexpm1.hpp91 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/
Dtest_expm1_op.py30 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/
Dtest_expm1_op.py31 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/
Dtest_expm1.cpp28 …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/
Dlog1p_expm1_test.hpp49 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()
Dtest_remez.cpp28 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()
Dtest_autodiff_7.cpp20 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/
Dgen-test-libm.c400 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/
Dtest-libm.inc.h289 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/
Dsf_expm1_incl_test.cpp18 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/
Dgenerate_test_values.cpp19 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/
Dtanh.c27 t = expm1(2*x); in tanh()
32 t = expm1(2*x); in tanh()
36 t = expm1(-2*x); in tanh()
Dexpm1l.c55 return expm1(x); in expm1l()
121 return expm1(x); in expm1l()
/third_party/musl/src/math/
Dtanh.c27 t = expm1(2*x); in tanh()
32 t = expm1(2*x); in tanh()
36 t = expm1(-2*x); in tanh()
Dexpm1l.c55 return expm1(x); in expm1l()
121 return expm1(x); in expm1l()
/third_party/boost/libs/config/test/
Dboost_has_expm1.ipp9 // TITLE: expm1
10 // DESCRIPTION: The std lib has a C99-conforming expm1 function.
19 x = ::expm1(x);
/third_party/boost/libs/math/doc/sf/
Dpowers.qbk122 [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/
Dtanh.c98 t = expm1 (two * fabs (x)); in tanh()
103 t = expm1 (-two * fabs (x)); in tanh()
/third_party/boost/boost/math/quadrature/detail/
Dooura_fourier_integrals_detail.hpp24 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/
Dtgmath.c111 #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/
Dexpm1f.cpp16 return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
Dexpm1.cpp16 return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()
Dexpm1l.cpp16 return c_policies::expm1 BOOST_PREVENT_MACRO_SUBSTITUTION(x); in BOOST_PREVENT_MACRO_SUBSTITUTION()

12345678