Searched refs:tanh (Results 1 - 25 of 30) sorted by relevance

12

/freebsd-current/contrib/arm-optimized-routines/pl/math/
H A Dtanh_3u.c2 * Double-precision tanh(x) function.
48 /* Approximation for double-precision tanh(x), using a simplified version of
50 tanh(-0x1.c4a4ca0f9f3b7p-3) got -0x1.bd6a21a163627p-3
53 tanh (double x) function
69 /* tanh(x) = (e^2x - 1) / (e^2x + 1). */
74 PL_SIG (S, D, 1, tanh, -10.0, 10.0)
75 PL_TEST_ULP (tanh, 2.27)
76 PL_TEST_SYM_INTERVAL (tanh, 0, TinyBound, 1000)
77 PL_TEST_SYM_INTERVAL (tanh, TinyBound, BoringBound, 100000)
78 PL_TEST_SYM_INTERVAL (tanh, BoringBoun
[all...]
H A Dv_tanhf_2u6.c2 * Single-precision vector tanh(x) function.
32 /* Approximation for single-precision vector tanh(x), using a simplified
36 float32x4_t VPCS_ATTR V_NAME_F1 (tanh) (float32x4_t x) function
59 /* tanh(x) = (e^2x - 1) / (e^2x + 1). */
68 PL_SIG (V, F, 1, tanh, -10.0, 10.0)
69 PL_TEST_ULP (V_NAME_F1 (tanh), 2.09)
70 PL_TEST_EXPECT_FENV (V_NAME_F1 (tanh), WANT_SIMD_EXCEPT)
71 PL_TEST_SYM_INTERVAL (V_NAME_F1 (tanh), 0, 0x1p-23, 1000)
72 PL_TEST_SYM_INTERVAL (V_NAME_F1 (tanh), 0x1p-23, 0x1.205966p+3, 100000)
73 PL_TEST_SYM_INTERVAL (V_NAME_F1 (tanh),
[all...]
H A Dsv_tanhf_2u6.c2 * Single-precision SVE tanh(x) function.
31 /* Approximation for single-precision SVE tanh(x), using a simplified
35 svfloat32_t SV_NAME_F1 (tanh) (svfloat32_t x, const svbool_t pg) function
47 /* tanh(x) = (e^2x - 1) / (e^2x + 1). */
55 PL_SIG (SV, F, 1, tanh, -10.0, 10.0)
56 PL_TEST_ULP (SV_NAME_F1 (tanh), 2.07)
57 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (tanh), 0, 0x1p-23, 1000)
58 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (tanh), 0x1p-23, 0x1.205966p+3, 100000)
59 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (tanh), 0x1.205966p+3, inf, 100)
H A Dv_tanh_3u.c2 * Double-precision vector tanh(x) function.
42 the scalar variant of tanh. */
66 return v_call_f64 (tanh, x, y, special);
69 /* Vector approximation for double-precision tanh(x), using a simplified
73 float64x2_t VPCS_ATTR V_NAME_D1 (tanh) (float64x2_t x) function
92 /* tanh(x) = (e^2x - 1) / (e^2x + 1). */
101 PL_SIG (V, D, 1, tanh, -10.0, 10.0)
102 PL_TEST_ULP (V_NAME_D1 (tanh), 2.27)
103 PL_TEST_EXPECT_FENV (V_NAME_D1 (tanh), WANT_SIMD_EXCEPT)
104 PL_TEST_SYM_INTERVAL (V_NAME_D1 (tanh),
[all...]
H A Dsv_tanh_3u.c2 * Double-precision SVE tanh(x) function.
40 the scalar variant of tanh. */
65 return sv_call_f64 (tanh, x, y, special);
68 /* SVE approximation for double-precision tanh(x), using a simplified
72 svfloat64_t SV_NAME_D1 (tanh) (svfloat64_t x, svbool_t pg) function
83 /* tanh(x) = (e^2x - 1) / (e^2x + 1). */
92 PL_SIG (SV, D, 1, tanh, -10.0, 10.0)
93 PL_TEST_ULP (SV_NAME_D1 (tanh), 2.27)
94 PL_TEST_SYM_INTERVAL (SV_NAME_D1 (tanh), 0, 0x1p-27, 5000)
95 PL_TEST_SYM_INTERVAL (SV_NAME_D1 (tanh),
[all...]
H A Dtanhf_2u6.c2 * Single-precision tanh(x) function.
58 /* Approximation for single-precision tanh(x), using a simplified version of
79 /* tanh(x) = (e^2x - 1) / (e^2x + 1). */
84 PL_SIG (S, F, 1, tanh, -10.0, 10.0)
/freebsd-current/contrib/llvm-project/libcxx/include/__math/
H A Dhyperbolic_functions.h56 // tanh
58 inline _LIBCPP_HIDE_FROM_ABI float tanh(float __x) _NOEXCEPT { return __builtin_tanhf(__x); }
61 _LIBCPP_HIDE_FROM_ABI double tanh(double __x) _NOEXCEPT {
65 inline _LIBCPP_HIDE_FROM_ABI long double tanh(long double __x) _NOEXCEPT { return __builtin_tanhl(__x); }
68 inline _LIBCPP_HIDE_FROM_ABI double tanh(_A1 __x) _NOEXCEPT {
/freebsd-current/lib/msun/src/
H A Ds_tanh.c18 * 0. tanh(x) is defined to be -----------
21 * 1. reduce x to non-negative by tanh(-x) = -tanh(x).
22 * 2. 0 <= x < 2**-28 : tanh(x) := x with inexact if x != 0
24 * 2**-28 <= x < 1 : tanh(x) := -----; t = expm1(-2x)
27 * 1 <= x < 22 : tanh(x) := 1 - -----; t = expm1(2x)
29 * 22 <= x <= INF : tanh(x) := 1.
32 * tanh(NaN) is NaN;
33 * only tanh(0)=0 is exact for finite argument.
45 tanh(doubl function
[all...]
H A Dmath.h251 double tanh(double);
/freebsd-current/contrib/netbsd-tests/lib/libm/
H A Dt_tanh.c38 * tanh(3)
43 atf_tc_set_md_var(tc, "descr", "Test tanh(NaN) == NaN");
51 ATF_CHECK(isnan(tanh(x)) != 0);
57 atf_tc_set_md_var(tc, "descr", "Test tanh(-Inf) == -1.0");
64 ATF_CHECK(tanh(x) == -1.0);
70 atf_tc_set_md_var(tc, "descr", "Test tanh(+Inf) == +1.0");
77 ATF_CHECK(tanh(x) == 1.0);
83 atf_tc_set_md_var(tc, "descr", "Test tanh(-0.0) == -0.0");
89 double y = tanh(x);
101 atf_tc_set_md_var(tc, "descr", "Test tanh(
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h176 __DEVICE__ double tanh(double);
177 __DEVICE__ float tanh(float);
269 using ::tanh;
H A D__clang_cuda_cmath.h176 __DEVICE__ float tanh(float __x) { return ::tanhf(__x); } function
298 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, tanh)
429 using ::tanh;
H A Dtgmath.h375 // tanh
383 __tg_tanh(double __x) {return tanh(__x);}
401 #undef tanh macro
402 #define tanh(__x) __tg_tanh(__tg_promote1((__x))(__x)) macro
H A D__clang_hip_cmath.h252 __DEF_FUN1(float, tanh)
540 __HIP_OVERLOAD1(double, tanh)
717 using ::tanh;
H A D__clang_cuda_math.h317 __DEVICE__ double tanh(double __a) { return __nv_tanh(__a); } function
H A D__clang_hip_math.h1093 double tanh(double __x) { return __ocml_tanh_f64(__x); } function
/freebsd-current/tools/regression/include/tgmath/
H A Dtgmath.c87 TGMACRO(tanh)
451 PRINT("tanh",
452 PASS_REAL_ARG_REAL_RET(tanh) &&
453 PASS_COMPLEX_ARG_COMPLEX_RET(tanh));
/freebsd-current/lib/msun/
H A DMakefile183 sinh.3 sinpi.3 sqrt.3 tan.3 tanh.3 tanpi.3 trunc.3 \
270 MLINKS+=tanh.3 tanhf.3 tanh.3 tanhl.3
/freebsd-current/include/
H A Dtgmath.h152 #define tanh(x) __tg_full(x, tanh) macro
/freebsd-current/contrib/llvm-project/libcxx/include/
H A Dmath.h130 floating_point tanh (arithmetic x);
498 using std::__math::tanh;
/freebsd-current/contrib/arm-optimized-routines/pl/math/include/
H A Dmathlib.h51 double tanh (double);
/freebsd-current/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h292 // tanh
295 __DEVICE__ std::complex<_Tp> tanh(const std::complex<_Tp> &__x) { function in namespace:std
382 std::complex<_Tp> __z = tanh(complex<_Tp>(-__x.imag(), __x.real()));
/freebsd-current/lib/msun/tests/
H A Dctrig_test.c317 test_odd_tol(ctanh, z, CMPLXL(tanh(nums[i]), 0), DBL_ULP());
346 test_odd_tol(ctan, z, CMPLXL(0, tanh(nums[i])), DBL_ULP());
372 * tanh(z) = (2cosh(0.5)sinh(0.5) + i) / (2 cosh(0.5)**2 - 1)
376 * tanh(z) = -coth(0.5)
380 * tanh(z) = (2cosh(1)sinh(1) - i) / (2cosh(1)**2 - 1)
437 /* tanh() uses a threshold around x=22, so check both sides. */
/freebsd-current/contrib/lua/src/
H A Dlmathlib.c670 lua_pushnumber(L, l_mathop(tanh)(luaL_checknumber(L, 1)));
731 {"tanh", math_tanh},
/freebsd-current/contrib/arm-optimized-routines/math/test/
H A Dmathtest.c231 TFUNC(at_d,rt_d, tanh, 4*ULPUNIT),

Completed in 486 milliseconds

12