Searched refs:sinh (Results 1 - 25 of 33) sorted by relevance

12

/freebsd-current/contrib/arm-optimized-routines/pl/math/
H A Dsinh_3u.c2 * Double-precision sinh(x) function.
21 /* Approximation for double-precision sinh(x) using expm1.
22 sinh(x) = (exp(x) - exp(-x)) / 2.
27 sinh (double x) function
40 /* expm1 overflows a little before sinh. We have to fill this
42 double-precision exp helper. For large x sinh(x) is dominated
45 to compute sinh(x) ~= (exp(|x| / 2)) ^ 2 / 2 for x > 0
54 /* Then sinh(x) = (t + t / (t + 1)) / 2 for x > 0
59 PL_SIG (S, D, 1, sinh, -10.0, 10.0)
60 PL_TEST_ULP (sinh, 2.0
[all...]
H A Dsv_sinhf_2u3.c2 * Single-precision SVE sinh(x) function.
31 /* Approximation for SVE single-precision sinh(x) using expm1.
32 sinh(x) = (exp(x) - exp(-x)) / 2.
36 svfloat32_t SV_NAME_F1 (sinh) (svfloat32_t x, const svbool_t pg) function
60 PL_SIG (SV, F, 1, sinh, -10.0, 10.0)
61 PL_TEST_ULP (SV_NAME_F1 (sinh), 1.76)
62 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (sinh), 0, 0x1.6a09e8p-32, 1000)
63 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (sinh), 0x1.6a09e8p-32, 0x42b0c0a7, 100000)
64 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (sinh), 0x42b0c0a7, inf, 1000)
H A Dv_sinhf_2u3.c2 * Single-precision vector sinh(x) function.
43 /* Approximation for vector single-precision sinh(x) using expm1.
44 sinh(x) = (exp(x) - exp(-x)) / 2.
48 float32x4_t VPCS_ATTR V_NAME_F1 (sinh) (float32x4_t x) function
79 PL_SIG (V, F, 1, sinh, -10.0, 10.0)
80 PL_TEST_ULP (V_NAME_F1 (sinh), 1.76)
81 PL_TEST_EXPECT_FENV (V_NAME_F1 (sinh), WANT_SIMD_EXCEPT)
82 PL_TEST_SYM_INTERVAL (V_NAME_F1 (sinh), 0, 0x2fb504f4, 1000)
83 PL_TEST_SYM_INTERVAL (V_NAME_F1 (sinh), 0x2fb504f4, 0x42b0c0a7, 100000)
84 PL_TEST_SYM_INTERVAL (V_NAME_F1 (sinh),
[all...]
H A Dv_sinh_3u.c2 * Double-precision vector sinh(x) function.
39 /* 2^-26, below which sinh(x) rounds to x. */
77 return v_call_f64 (sinh, x, x, v_u64 (-1));
80 /* Approximation for vector double-precision sinh(x) using expm1.
81 sinh(x) = (exp(x) - exp(-x)) / 2.
85 float64x2_t VPCS_ATTR V_NAME_D1 (sinh) (float64x2_t x) function
105 /* Up to the point that expm1 overflows, we can use it to calculate sinh
106 using a slight rearrangement of the definition of sinh. This allows us to
113 PL_SIG (V, D, 1, sinh, -10.0, 10.0)
114 PL_TEST_ULP (V_NAME_D1 (sinh), 2.0
[all...]
H A Dsv_sinh_3u.c2 * Double-precision SVE sinh(x) function.
68 return sv_call_f64 (sinh, x, x, pg);
71 /* Approximation for SVE double-precision sinh(x) using expm1.
72 sinh(x) = (exp(x) - exp(-x)) / 2.
76 svfloat64_t SV_NAME_D1 (sinh) (svfloat64_t x, svbool_t pg) function
91 /* Up to the point that expm1 overflows, we can use it to calculate sinh
92 using a slight rearrangement of the definition of sinh. This allows us to
99 PL_SIG (SV, D, 1, sinh, -10.0, 10.0)
100 PL_TEST_ULP (SV_NAME_D1 (sinh), 2.08)
101 PL_TEST_SYM_INTERVAL (SV_NAME_D1 (sinh),
[all...]
H A Dsinhf_2u3.c2 * Single-precision sinh(x) function.
24 /* Approximation for single-precision sinh(x) using expm1.
25 sinh(x) = (exp(x) - exp(-x)) / 2.
49 double-precision exp helper. For large x sinh(x) dominated by exp(x),
53 to compute sinh(x) ~= (exp(|x| / 2)) ^ 2 / 2 for x > 0
64 /* Then sinh(x) = (t + t / (t + 1)) / 2 for x > 0
69 PL_SIG (S, F, 1, sinh, -10.0, 10.0)
/freebsd-current/contrib/llvm-project/libcxx/include/__math/
H A Dhyperbolic_functions.h40 // sinh
42 inline _LIBCPP_HIDE_FROM_ABI float sinh(float __x) _NOEXCEPT { return __builtin_sinhf(__x); }
45 _LIBCPP_HIDE_FROM_ABI double sinh(double __x) _NOEXCEPT {
49 inline _LIBCPP_HIDE_FROM_ABI long double sinh(long double __x) _NOEXCEPT { return __builtin_sinhl(__x); }
52 inline _LIBCPP_HIDE_FROM_ABI double sinh(_A1 __x) _NOEXCEPT {
/freebsd-current/lib/msun/src/
H A De_sinh.c13 /* sinh(x)
15 * mathematically sinh(x) if defined to be (exp(x)-exp(-x))/2
16 * 1. Replace x by |x| (sinh(-x) = -sinh(x)).
19 * 0 <= x <= 22 : sinh(x) := --------------, E=expm1(x)
22 * 22 <= x <= lnovft : sinh(x) := exp(x)/2
23 * lnovft <= x <= ln2ovft: sinh(x) := exp(x/2)/2 * exp(x/2)
24 * ln2ovft < x : sinh(x) := x*shuge (overflow)
27 * sinh(x) is |x| if x is +INF, -INF, or NaN.
28 * only sinh(
39 sinh(double x) function
[all...]
H A Ds_csinh.c32 * sinh(z) = sinh(x+iy)
33 * = sinh(x) cos(y) + i cosh(x) sin(y).
38 * must satisfy both sinh(conj(z)) == conj(sinh(z)) and sinh(-z) == -sinh(z).
66 return (CMPLX(sinh(x), y));
68 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)));
87 * sinh(
[all...]
H A Ds_ctanh.c42 * s = sinh(x)
47 * tanh(z) = sinh(z) / cosh(z)
49 * sinh(x) cos(y) + I cosh(x) sin(y)
51 * cosh(x) cos(y) + I sinh(x) sin(y)
53 * cosh(x) sinh(x) / cos^2(y) + I tan(y)
55 * 1 + sinh^2(x) / cos^2(y)
121 * approximation sinh^2(huge) ~= exp(2*huge) / 4.
133 s = sinh(x);
H A Ds_ccosh.c33 * = cosh(x) cos(y) + i sinh(x) sin(y).
68 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)));
H A Dmath.h250 double sinh(double);
/freebsd-current/contrib/netbsd-tests/lib/libm/
H A Dt_sinh.c56 * sinh(3)
61 atf_tc_set_md_var(tc, "descr", "sinh(x) for some values");
73 if (!(fabs((sinh(x) - sinh_x)/sinh_x) <= eps)) {
74 atf_tc_fail_nonfatal("sinh(%.17g) = %.17g != %.17g\n",
75 x, sinh(x), sinh_x);
83 atf_tc_set_md_var(tc, "descr", "Test sinh(NaN) == NaN");
91 ATF_CHECK(isnan(sinh(x)) != 0);
97 atf_tc_set_md_var(tc, "descr", "Test sinh(-Inf) == -Inf");
103 double y = sinh(x);
112 atf_tc_set_md_var(tc, "descr", "Test sinh(
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h170 __DEVICE__ double sinh(double);
171 __DEVICE__ float sinh(float);
266 using ::sinh;
H A D__clang_cuda_cmath.h173 __DEVICE__ float sinh(float __x) { return ::sinhf(__x); } function
295 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, sinh)
426 using ::sinh;
H A D__clang_hip_cmath.h249 __DEF_FUN1(float, sinh)
537 __HIP_OVERLOAD1(double, sinh)
714 using ::sinh;
826 return sinh(x) * y;
H A Dtgmath.h346 // sinh
354 __tg_sinh(double __x) {return sinh(__x);}
372 #undef sinh macro
373 #define sinh(__x) __tg_sinh(__tg_promote1((__x))(__x)) macro
/freebsd-current/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h262 // sinh
265 __DEVICE__ std::complex<_Tp> sinh(const std::complex<_Tp> &__x) { function in namespace:std
272 return std::complex<_Tp>(sinh(__x.real()) * cos(__x.imag()),
289 sinh(__x.real()) * sin(__x.imag()));
307 _Tp __2rsh(sinh(__2r));
368 std::complex<_Tp> __z = sinh(complex<_Tp>(-__x.imag(), __x.real()));
/freebsd-current/tools/regression/include/tgmath/
H A Dtgmath.c86 TGMACRO(sinh)
447 PRINT("sinh",
448 PASS_REAL_ARG_REAL_RET(sinh) &&
449 PASS_COMPLEX_ARG_COMPLEX_RET(sinh));
/freebsd-current/lib/msun/
H A DMakefile183 sinh.3 sinpi.3 sqrt.3 tan.3 tanh.3 tanpi.3 trunc.3 \
265 MLINKS+=sinh.3 sinhf.3 sinh.3 sinhl.3
/freebsd-current/include/
H A Dtgmath.h151 #define sinh(x) __tg_full(x, sinh) macro
/freebsd-current/contrib/llvm-project/libcxx/include/
H A Dmath.h118 floating_point sinh (arithmetic x);
495 using std::__math::sinh;
/freebsd-current/contrib/arm-optimized-routines/pl/math/include/
H A Dmathlib.h49 double sinh (double);
/freebsd-current/lib/msun/tests/
H A Dctrig_test.c315 test_odd_tol(csinh, z, CMPLXL(sinh(nums[i]), 0), DBL_ULP());
344 test_odd_tol(csin, z, CMPLXL(0, sinh(nums[i])), DBL_ULP());
370 * sinh(z) = (sinh(0.5) + i cosh(0.5)) * sqrt(2)/2
371 * cosh(z) = (cosh(0.5) + i sinh(0.5)) * sqrt(2)/2
372 * tanh(z) = (2cosh(0.5)sinh(0.5) + i) / (2 cosh(0.5)**2 - 1)
374 * sinh(z) = cosh(0.5)
375 * cosh(z) = -i sinh(0.5)
378 * sinh(z) = (-sinh(
[all...]
/freebsd-current/contrib/lua/src/
H A Dlmathlib.c665 lua_pushnumber(L, l_mathop(sinh)(luaL_checknumber(L, 1)));
730 {"sinh", math_sinh},

Completed in 167 milliseconds

12