Home
last modified time | relevance | path

Searched refs:log1p (Results 1 – 25 of 181) sorted by relevance

12345678

/third_party/jerryscript/tests/jerry/es2015/
Dmath-log1p.js23 assert(isNaN(Math.log1p(NaN)));
24 assert(isNaN(Math.log1p(-42)));
25 assert(isNaN(Math.log1p(-3.0)));
26 assert(isSameZero(Math.log1p(n_zero), n_zero));
27 assert(isSameZero(Math.log1p(p_zero), p_zero));
28 assert(Math.log1p(-1) === Number.NEGATIVE_INFINITY);
29 assert(Math.log1p(Number.POSITIVE_INFINITY) === Number.POSITIVE_INFINITY);
30 assert(Math.log1p(Math.E - 1) === 1);
/third_party/python/Lib/test/
Dmath_testcases.txt374 -- log1p: log(1 + x), without precision loss for small x --
378 log1p0000 log1p 0.0 -> 0.0
379 log1p0001 log1p -0.0 -> -0.0
380 log1p0002 log1p inf -> inf
381 log1p0003 log1p -inf -> nan invalid
382 log1p0004 log1p nan -> nan
385 log1p0010 log1p -1.0 -> -inf divide-by-zero
386 log1p0011 log1p -0.9999999999999999 -> -36.736800569677101
389 log1p0020 log1p -1.0000000000000002 -> nan invalid
390 log1p0021 log1p -1.1 -> nan invalid
[all …]
/third_party/boost/boost/math/special_functions/
Dlog1p.hpp286 boost::math::log1p(static_cast<T>(0.25), Policy()); in do_init()
304 inline typename tools::promote_args<T>::type log1p(T x, const Policy&) in log1p() function
330 inline float log1p(float z) in log1p() function
332 return log1p<float>(z); in log1p()
334 inline double log1p(double z) in log1p() function
336 return log1p<double>(z); in log1p()
339 inline long double log1p(long double z) in log1p() function
341 return log1p<long double>(z); in log1p()
346 #ifdef log1p
350 # undef log1p
[all …]
/third_party/mindspore/tests/st/ops/gpu/
Dtest_log1p_op.py30 self.log1p = P.Log1p()
33 return self.log1p(x)
40 log1p = NetLog1p()
42 output = log1p(Tensor(x, dtype=dtype.float32))
43 expect = np.log1p(x)
51 log1p = NetLog1p()
53 output = log1p(Tensor(x, dtype=dtype.float16))
54 expect = np.log1p(x)
/third_party/boost/libs/math/reporting/performance/
Dtest_log1p.cpp28 …screen_data([](const std::vector<double>& v){ return boost::math::log1p(v[0]); }, [](const std::… in main()
31 …screen_data([](const std::vector<double>& v){ return ::log1p(v[0]); }, [](const std::vector<doub… in main()
34 …screen_data([](const std::vector<double>& v){ return std::tr1::log1p(v[0]); }, [](const std::vec… in main()
41 …double time = exec_timed_test([](const std::vector<double>& v){ return boost::math::log1p(v[0]); … in main()
53 …double time = exec_timed_test([](const std::vector<double>& v){ return boost::math::log1p(v[0], b… in main()
64 time = exec_timed_test([](const std::vector<double>& v){ return ::log1p(v[0]); }); in main()
69 time = exec_timed_test([](const std::vector<double>& v){ return std::tr1::log1p(v[0]); }); in main()
/third_party/boost/libs/math/test/
Dlog1p_expm1_test.hpp23 pg funcp = &boost::math::log1p<value_type>; in do_test()
25 pg funcp = &boost::math::log1p; in do_test()
73 BOOST_CHECK_EQUAL(boost::math::log1p(zero), zero); in test()
74 BOOST_CHECK_EQUAL(boost::math::log1p(T(-zero)), zero); in test()
78 BOOST_CHECK_EQUAL(boost::math::log1p(m_one), -std::numeric_limits<T>::infinity()); in test()
87 BOOST_MATH_CHECK_THROW(boost::math::log1p(m_one, pol()), std::overflow_error); in test()
/third_party/boost/libs/math/test/compile_test/
Dsf_log1p_incl_test.cpp18 check_result<float>(boost::math::log1p<float>(f)); in compile_and_link_test()
19 check_result<double>(boost::math::log1p<double>(d)); in compile_and_link_test()
21 check_result<long double>(boost::math::log1p<long double>(l)); in compile_and_link_test()
/third_party/boost/libs/math/example/
Dseries.cpp42 T log1p(T x) in log1p() function
84 std::complex<T> log1p(std::complex<T> x) in log1p() function
102 std::cout << log1p(0.25) << std::endl; in main()
104 std::cout << log1p(std::complex<double>(0.25, 0.25)) << std::endl; in main()
/third_party/musl/src/math/i386/
Dlog1p.s1 .global log1p symbol
2 .type log1p,@function
3 log1p: label
/third_party/boost/boost/math/complex/
Datanh.hpp94 real = boost::math::log1p(four * x / (mxm1*mxm1 + yy)); in atanh()
125 real = boost::math::log1p((four/y) / (x/y + y/x)); in atanh()
130 real = boost::math::log1p(four / (x + y*y/x)); in atanh()
135 real = boost::math::log1p(four/x); in atanh()
143 real = boost::math::log1p((four*x/y) / (y + mxm1*mxm1/y)); in atanh()
157 real = boost::math::log1p(four*x/div); in atanh()
Dasin.hpp164 imag = boost::math::log1p(am1 + std::sqrt(am1 * (a + one))); in asin()
189 imag = boost::math::log1p(xm1 + std::sqrt(xp1*xm1)); in asin()
225 imag = log_two + std::log(y) + half * boost::math::log1p(xoy*xoy); in asin()
231 imag = half * boost::math::log1p(static_cast<T>(2)*y*(y+a)); in asin()
Dacos.hpp155 imag = boost::math::log1p(am1 + std::sqrt(am1 * (a + one))); in acos()
181 imag = boost::math::log1p(xm1 + std::sqrt(xp1*xm1)); in acos()
218 imag = log_two + std::log(y) + half * boost::math::log1p(xoy*xoy); in acos()
224 imag = half * boost::math::log1p(static_cast<T>(2)*y*(y+a)); in acos()
/third_party/boost/libs/math/tools/
Dgenerate_test_values.cpp14 mp_t log1p(mp_t arg) in log1p() 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/boost/libs/config/test/
Dboost_has_log1p.ipp9 // TITLE: log1p
10 // DESCRIPTION: The std lib has a C99-conforming log1p function.
19 x = ::log1p(x);
/third_party/boost/libs/math/doc/sf/
Dpowers.qbk61 [section:log1p log1p]
64 #include <boost/math/special_functions/log1p.hpp>
70 ``__sf_result`` log1p(T x);
73 ``__sf_result`` log1p(T x, const ``__Policy``&);
86 best approximation to /log(x+1)/ would be /x/. `log1p` calculates the best
104 The following graph illustrates the behaviour of log1p:
106 [graph log1p]
110 For built in floating point types `log1p`
120 [endsect] [/section:log1p log1p]
239 Implemented in terms of `log1p` and `expm1`.
/third_party/jerryscript/tools/unit-tests/
Dgen-test-libm.c575 GEN_DBL_TEST (log1p (0.0)); in main()
576 GEN_DBL_TEST (log1p (-0.0)); in main()
577 GEN_DBL_TEST (log1p (1.0)); in main()
578 GEN_DBL_TEST (log1p (-1.0)); in main()
579 GEN_DBL_TEST (log1p (INFINITY)); in main()
580 GEN_DBL_TEST (log1p (-INFINITY)); in main()
581 GEN_DBL_TEST (log1p (NAN)); in main()
582 GEN_DBL_TEST (log1p (M_E)); in main()
583 GEN_DBL_TEST (log1p (1.0 / M_E)); in main()
584 GEN_DBL_TEST (log1p (2)); in main()
[all …]
/third_party/jerryscript/tests/unit-libm/
Dtest-libm.inc.h433 check_double ("log1p (0.0)", log1p (0.0), 0.00000000000000000000E+00);
434 check_double ("log1p (-0.0)", log1p (-0.0), -0.00000000000000000000E+00);
435 check_double ("log1p (1.0)", log1p (1.0), 6.93147180559945286227E-01);
436 check_double ("log1p (-1.0)", log1p (-1.0), -INF);
437 check_double ("log1p (INFINITY)", log1p (INFINITY), INF);
438 check_double ("log1p (-INFINITY)", log1p (-INFINITY), -NAN);
439 check_double ("log1p (NAN)", log1p (NAN), NAN);
440 check_double ("log1p (M_E)", log1p (M_E), 1.31326168751822280889E+00);
441 check_double ("log1p (1.0 / M_E)", log1p (1.0 / M_E), 3.13261687518222864401E-01);
442 check_double ("log1p (2)", log1p (2), 1.09861228866810978211E+00);
[all …]
/third_party/musl/porting/liteos_a/kernel/src/math/
Datanh.c22 y = 0.5*log1p(2*y + 2*y*y/(1-y)); in atanh()
26 y = 0.5*log1p(2*(y/(1-y))); in atanh()
Dlog1pl.c56 return log1p(x); in log1pl()
175 return log1p(x); in log1pl()
/third_party/musl/src/math/
Datanh.c22 y = 0.5*log1p(2*y + 2*y*y/(1-y)); in atanh()
26 y = 0.5*log1p(2*(y/(1-y))); in atanh()
Dlog1pl.c56 return log1p(x); in log1pl()
175 return log1p(x); in log1pl()
/third_party/jerryscript/jerry-libm/
Datanh.c82 t = 0.5 * log1p (t + t * temp.dbl / (one - temp.dbl)); in atanh()
86 t = 0.5 * log1p ((temp.dbl + temp.dbl) / (one - temp.dbl)); in atanh()
/third_party/boost/boost/math/distributions/
Dgeometric.hpp375 RealType z = boost::math::log1p(-p, Policy()) * (k + 1); in cdf()
401 RealType z = boost::math::log1p(-p, Policy()) * (k+1); in cdf()
451 … result = boost::math::log1p(-x, Policy()) / boost::math::log1p(-success_fraction, Policy()) - 1; in quantile()
499 result = log(x) / boost::math::log1p(-success_fraction, Policy()) - 1; in quantile()
/third_party/mindspore/mindspore/nn/probability/bijector/
Dpower_transform.py89 self.log1p = P.Log1p()
122 self.exp(self.log1p(x * safe_power) / safe_power))
168 (1. / power_local - 1) * self.log1p(x * power_local))
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dsigmoid_cross_entropy_with_logits_cpu_kernel.cc63 …output_addr[i] = static_cast<T>(log1p(static_cast<float>(exp(logits_addr[i] - two * logits_addr[i]… in LaunchKernel()
66 …output_addr[i] = static_cast<T>(log1p(static_cast<float>(exp(logits_addr[i])))) - logits_addr[i] *… in LaunchKernel()

12345678