Home
last modified time | relevance | path

Searched refs:expm1 (Results 1 - 25 of 55) sorted by relevance

123

/third_party/jerryscript/tests/jerry/es2015/
H A 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/jerryscript/tools/unit-tests/
H A Dgen-test-libm.c399 /* expm1 tests */ in main()
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.1 in main()
[all...]
/third_party/musl/src/math/
H A Dtanh.c27 t = expm1(2*x); in tanh()
32 t = expm1(2*x); in tanh()
36 t = expm1(-2*x); in tanh()
H A Dexpm1l.c55 return expm1(x); in expm1l()
121 return expm1(x); in expm1l()
H A Dcosh.c25 t = expm1(x); in cosh()
H A Dsinh.c23 t = expm1(absx); in sinh()
26 /* note: inexact and underflow are raised by expm1 */ in sinh()
/third_party/musl/porting/liteos_a/kernel/src/math/
H A Dtanh.c27 t = expm1(2*x); in tanh()
32 t = expm1(2*x); in tanh()
36 t = expm1(-2*x); in tanh()
H A Dexpm1l.c55 return expm1(x); in expm1l()
121 return expm1(x); in expm1l()
H A Dcosh.c25 t = expm1(x); in cosh()
H A Dsinh.c23 t = expm1(absx); in sinh()
26 /* note: inexact and underflow are raised by expm1 */ in sinh()
/third_party/jerryscript/jerry-libm/
H A Dtanh.c44 * 2**-55 < x <= 1 : tanh(x) := -----; t = expm1(-2x)
48 * 1 <= x <= 22.0 : tanh(x) := 1- ----- ; t = expm1(2x)
98 t = expm1 (two * fabs (x)); in tanh()
103 t = expm1 (-two * fabs (x)); in tanh()
H A Dcosh.c72 /* |x| in [0, 0.5 * ln2], return 1 + expm1(|x|)^2 / (2 * exp(|x|)) */ in cosh()
75 t = expm1 (fabs (x)); in cosh()
H A Dsinh.c36 * 0 <= x <= 22 : sinh(x) := -------------, E = expm1(x)
87 t = expm1 (fabs (x)); in sinh()
H A Djerry-libm-internal.h100 double expm1 (double x);
H A Dexpm1.c29 /* expm1(x)
41 * 2. Approximating expm1(r) by a special rational function on
67 * expm1(r) = exp(r)-1 is then computed by the following
71 * expm1(r) = r + --- + --- * [--------------------]
75 * expm1(r+c) = expm1(r) + c + expm1(r)*c
76 * ~ expm1(r) + c + r*c
78 * expm1(r+c). Now rearrange the term to avoid optimization
82 * expm1(
140 expm1 (double x) expm1() function
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
H A Dmath_expm1_test.cpp17 * @tc.desc: Obtain test data in sequence and check if it is within the expected error range of the expm1 interface.
24 bool testResult = DoubleUlpCmp(g_expm1Data[i].expected, expm1(g_expm1Data[i].input), 1); in HWTEST_F()
31 * @tc.desc: When the parameter of expm1 is valid, test the return value of the function.
36 EXPECT_DOUBLE_EQ(M_E - 1.0, expm1(1.0)); in HWTEST_F()
/third_party/musl/libc-test/src/api/
H A Dtgmath.c111 #ifdef expm1 in f()
112 {double r = expm1(x);} in f()
114 #error no expm1(x) in f()
/third_party/typescript/tests/baselines/reference/
H A DdoYouNeedToChangeYourTargetLibraryES2015.js46 const testMathExpm1 = Math.expm1(0);
144 var testMathExpm1 = Math.expm1(0);
/third_party/jerryscript/jerry-libm/include/
H A Dmath.h71 double expm1 (double);
/third_party/node/deps/v8/src/base/
H A Dieee754.h61 V8_BASE_EXPORT double expm1(double x);
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/
H A DSingleFunctionEffects.h45 x = std::copysign(-std::expm1(-std::abs(x)), x); in _distortion()
/third_party/musl/libc-test/src/math/
H A Dexpm1.c6 #include "crlibm/expm1.h"
7 #include "sanity/expm1.h"
8 #include "special/expm1.h"
27 y = expm1(p->x); in main()
32 printf("%s:%d: bad fp exception: %s expm1(%a)=%a, want %s", in main()
40 printf("%s:%d: %s expm1(%a) want %a got %a ulperr %.3f = %a + %a\n", in main()
/third_party/musl/porting/uniproton/kernel/include/
H A Dtgmath.h167 #undef expm1 macro
230 #define expm1(x) __tg_real(expm1, (x)) macro
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtgmath.h167 #undef expm1 macro
230 #define expm1(x) __tg_real(expm1, (x)) macro
/third_party/musl/include/
H A Dtgmath.h167 #undef expm1 macro
230 #define expm1(x) __tg_real(expm1, (x)) macro

Completed in 10 milliseconds

123