Home
last modified time | relevance | path

Searched refs:log1p (Results 1 - 25 of 57) sorted by relevance

123

/third_party/jerryscript/tests/jerry/es2015/
H A 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/musl/libc-test/src/functionalext/supplement/math/math_gtest/
H A Dmath_log1p_test.cpp17 * @tc.desc: Obtain test data in sequence and check if it is within the expected error range of the log1p interface.
24 bool testResult = DoubleUlpCmp(g_log1pData[i].expected, log1p(g_log1pData[i].input), 1); in HWTEST_F()
36 EXPECT_EQ(-HUGE_VAL, log1p(-1.0)); in HWTEST_F()
46 EXPECT_TRUE(isnan(log1p(-HUGE_VAL))); in HWTEST_F()
47 EXPECT_TRUE(isnan(log1p(nan("")))); in HWTEST_F()
57 EXPECT_TRUE(isinf(log1p(HUGE_VAL))); in HWTEST_F()
67 EXPECT_DOUBLE_EQ(1.0, log1p(M_E - 1.0)); in HWTEST_F()
/third_party/musl/src/math/i386/
H A Dlog1p.s1 .global log1p
2 .type log1p,@function
3 log1p: label
/third_party/jerryscript/tools/unit-tests/
H A Dgen-test-libm.c574 /* log1p tests */ in main()
575 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. in main()
[all...]
/third_party/musl/src/math/
H A Datanh.c3 /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */
22 y = 0.5*log1p(2*y + 2*y*y/(1-y)); in atanh()
26 y = 0.5*log1p(2*(y/(1-y))); in atanh()
H A Dlog1pl.c56 return log1p(x); in log1pl()
175 return log1p(x); in log1pl()
H A Dacosh.c18 return log1p(x-1 + sqrt((x-1)*(x-1)+2*(x-1))); in acosh()
H A Dasinh.c22 x = log1p(x + x*x/(sqrt(x*x+1)+1)); in asinh()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Datanh.c3 /* atanh(x) = log((1+x)/(1-x))/2 = log1p(2x/(1-x))/2 ~= x + x^3/3 + o(x^5) */
22 y = 0.5*log1p(2*y + 2*y*y/(1-y)); in atanh()
26 y = 0.5*log1p(2*(y/(1-y))); in atanh()
H A Dlog1pl.c56 return log1p(x); in log1pl()
175 return log1p(x); in log1pl()
H A Dacosh.c18 return log1p(x-1 + sqrt((x-1)*(x-1)+2*(x-1))); in acosh()
H A Dasinh.c22 x = log1p(x + x*x/(sqrt(x*x+1)+1)); in asinh()
/third_party/jerryscript/jerry-libm/
H A Datanh.c35 * atanh(x) = --- * log(1 + -------) = 0.5 * log1p(2 * --------)
39 * atanh(x) = 0.5 * log1p(2x + 2x * x / (1 - x))
82 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()
H A Dacosh.c37 * acosh(x) := log1p(t + sqrt(2.0 * t + t * t)); where t = x - 1.
87 return log1p (t + sqrt (2.0 * t + t * t)); in acosh()
H A Dasinh.c38 * := sign(x) * log1p(|x| + x^2 / (1 + sqrt(1 + x^2)))
81 w = log1p (fabs (x) + t / (one + sqrt (one + t))); in asinh()
H A Djerry-libm-internal.h102 double log1p (double x);
/third_party/musl/libc-test/src/api/
H A Dtgmath.c196 #ifdef log1p in f()
197 {double r = log1p(x);} in f()
199 #error no log1p(x) in f()
/third_party/python/Modules/
H A D_math.h0 /* log1p(x) = log(1+x). The log1p function is designed to avoid the
10 /* Some platforms supply a log1p function but don't respect the sign of in _Py_log1p()
11 zero: log1p(-0.0) gives 0.0 instead of the correct result of -0.0. in _Py_log1p()
20 return log1p(x); in _Py_log1p()
/third_party/typescript/tests/baselines/reference/
H A DdoYouNeedToChangeYourTargetLibraryES2015.js45 const testMathLog1p = Math.log1p(0);
143 var testMathLog1p = Math.log1p(0);
/third_party/jerryscript/jerry-libm/include/
H A Dmath.h73 double log1p (double);
/third_party/node/deps/v8/src/base/
H A Dieee754.h49 V8_BASE_EXPORT double log1p(double x);
/third_party/musl/libc-test/src/math/
H A Dlog1p.c6 #include "crlibm/log1p.h"
7 #include "sanity/log1p.h"
8 #include "special/log1p.h"
27 y = log1p(p->x); in main()
32 printf("%s:%d: bad fp exception: %s log1p(%a)=%a, want %s", in main()
40 printf("%s:%d: %s log1p(%a) want %a got %a ulperr %.3f = %a + %a\n", in main()
/third_party/musl/porting/uniproton/kernel/include/
H A Dtgmath.h184 #undef log1p macro
247 #define log1p(x) __tg_real(log1p, (x)) macro
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtgmath.h184 #undef log1p macro
247 #define log1p(x) __tg_real(log1p, (x)) macro
/third_party/musl/include/
H A Dtgmath.h184 #undef log1p macro
247 #define log1p(x) __tg_real(log1p, (x)) macro

Completed in 8 milliseconds

123