Searched refs:cosh (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-current/contrib/arm-optimized-routines/pl/math/
H A Dcosh_2u.c2 * Double-precision cosh(x) function.
26 /* exp overflows above SpecialBound. At this magnitude cosh(x) is dominated by
27 exp(x), so we can approximate cosh(x) by (exp(|x|/2)) ^ 2 / 2. */
32 /* Approximation for double-precision cosh(x).
33 cosh(x) = (exp(x) + exp(-x)) / 2.
35 cosh(0x1.628af341989dap+9) got 0x1.fdf28623ef921p+1021
39 cosh(0x1.502cd8e56ab3bp+0) got 0x1.fe54962842d0ep+0
42 cosh (double x) function
47 /* exp overflows a little bit before cosh, so use special-case handler for the
54 cosh(
[all...]
H A Dsv_coshf_2u.c2 * Single-precision SVE cosh(x) function.
30 /* Single-precision vector cosh, using vector expf.
34 svfloat32_t SV_NAME_F1 (cosh) (svfloat32_t x, svbool_t pg) function
41 /* Calculate cosh by exp(x) / 2 + exp(-x) / 2. */
52 PL_SIG (SV, F, 1, cosh, -10.0, 10.0)
53 PL_TEST_ULP (SV_NAME_F1 (cosh), 1.39)
54 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (cosh), 0, 0x1p-63, 100)
55 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (cosh), 0, 0x1.5a92d8p+6, 80000)
56 PL_TEST_SYM_INTERVAL (SV_NAME_F1 (cosh), 0x1.5a92d8p+6, inf, 2000)
H A Dv_coshf_2u4.c2 * Single-precision vector cosh(x) function.
33 /* Single-precision vector cosh, using vector expf.
37 float32x4_t VPCS_ATTR V_NAME_F1 (cosh) (float32x4_t x) function
59 /* Calculate cosh by exp(x) / 2 + exp(-x) / 2. */
75 PL_SIG (V, F, 1, cosh, -10.0, 10.0)
76 PL_TEST_ULP (V_NAME_F1 (cosh), 1.89)
77 PL_TEST_EXPECT_FENV (V_NAME_F1 (cosh), WANT_SIMD_EXCEPT)
78 PL_TEST_SYM_INTERVAL (V_NAME_F1 (cosh), 0, 0x1p-63, 100)
79 PL_TEST_SYM_INTERVAL (V_NAME_F1 (cosh), 0, 0x1.5a92d8p+6, 80000)
80 PL_TEST_SYM_INTERVAL (V_NAME_F1 (cosh),
[all...]
H A Dv_cosh_2u.c2 * Double-precision vector cosh(x) function.
35 return v_call_f64 (cosh, x, y, special);
69 /* Approximation for vector double-precision cosh(x) using exp_inline.
70 cosh(x) = (exp(x) + exp(-x)) / 2.
79 float64x2_t VPCS_ATTR V_NAME_D1 (cosh) (float64x2_t x) function
87 /* Up to the point that exp overflows, we can use it to calculate cosh by
100 PL_SIG (V, D, 1, cosh, -10.0, 10.0)
101 PL_TEST_ULP (V_NAME_D1 (cosh), 1.43)
102 PL_TEST_EXPECT_FENV_ALWAYS (V_NAME_D1 (cosh))
103 PL_TEST_SYM_INTERVAL (V_NAME_D1 (cosh),
[all...]
H A Dsv_cosh_2u.c2 * Double-precision SVE cosh(x) function.
36 return sv_call_f64 (cosh, x, y, special);
67 /* Approximation for SVE double-precision cosh(x) using exp_inline.
68 cosh(x) = (exp(x) + exp(-x)) / 2.
77 svfloat64_t SV_NAME_D1 (cosh) (svfloat64_t x, const svbool_t pg) function
84 /* Up to the point that exp overflows, we can use it to calculate cosh by
97 PL_SIG (SV, D, 1, cosh, -10.0, 10.0)
98 PL_TEST_ULP (SV_NAME_D1 (cosh), 1.43)
99 PL_TEST_SYM_INTERVAL (SV_NAME_D1 (cosh), 0, 0x1.6p9, 100000)
100 PL_TEST_SYM_INTERVAL (SV_NAME_D1 (cosh),
[all...]
H A Dcoshf_1u9.c2 * Single-precision cosh(x) function.
32 without overflow, so use exp(|x|/2) instead. For large x cosh(x) is
34 cosh(x) ~= (exp(|x|/2))^2 / 2. */
39 /* Approximation for single-precision cosh(x) using exp.
40 cosh(x) = (exp(x) + exp(-x)) / 2.
58 /* Compute cosh using the definition:
64 PL_SIG (S, F, 1, cosh, -10.0, 10.0)
/freebsd-current/contrib/llvm-project/libcxx/include/__math/
H A Dhyperbolic_functions.h24 // cosh
26 inline _LIBCPP_HIDE_FROM_ABI float cosh(float __x) _NOEXCEPT { return __builtin_coshf(__x); }
29 _LIBCPP_HIDE_FROM_ABI double cosh(double __x) _NOEXCEPT {
33 inline _LIBCPP_HIDE_FROM_ABI long double cosh(long double __x) _NOEXCEPT { return __builtin_coshl(__x); }
36 inline _LIBCPP_HIDE_FROM_ABI double cosh(_A1 __x) _NOEXCEPT {
/freebsd-current/lib/msun/src/
H A De_cosh.c13 /* cosh(x)
15 * mathematically cosh(x) if defined to be (exp(x)+exp(-x))/2
16 * 1. Replace x by |x| (cosh(x) = cosh(-x)).
19 * 0 <= x <= ln2/2 : cosh(x) := 1 + -------------------
23 * ln2/2 <= x <= 22 : cosh(x) := -------------------
25 * 22 <= x <= lnovft : cosh(x) := exp(x)/2
26 * lnovft <= x <= ln2ovft: cosh(x) := exp(x/2)/2 * exp(x/2)
27 * ln2ovft < x : cosh(x) := huge*huge (overflow)
30 * cosh(
42 cosh(double x) function
[all...]
H A Ds_ccosh.c32 * cosh(z) = cosh(x+iy)
33 * = cosh(x) cos(y) + i sinh(x) sin(y).
38 * must satisfy both cosh(conj(z)) == conj(cosh(z)) and cosh(-z) == cosh(z).
66 return (CMPLX(cosh(x), x * y));
68 return (CMPLX(cosh(x) * cos(y), sinh(x) * sin(y)));
70 /* |x| >= 22, so cosh(
[all...]
H A Ds_csinh.c33 * = sinh(x) cos(y) + i cosh(x) sin(y).
68 return (CMPLX(sinh(x) * cos(y), cosh(x) * sin(y)));
70 /* |x| >= 22, so cosh(x) ~= exp(|x|) */
H A Dmath.h249 double cosh(double);
/freebsd-current/contrib/netbsd-tests/lib/libm/
H A Dt_cosh.c57 * cosh(3)
62 atf_tc_set_md_var(tc, "descr", "cosh(x) for some values");
74 if (!(fabs((cosh(x) - cosh_x)/cosh_x) <= eps)) {
75 atf_tc_fail_nonfatal("cosh(%.17g) = %.17g != %.17g\n",
76 x, cosh(x), cosh_x);
84 atf_tc_set_md_var(tc, "descr", "Test cosh(NaN) == NaN");
92 ATF_CHECK(isnan(cosh(x)) != 0);
98 atf_tc_set_md_var(tc, "descr", "Test cosh(-Inf) == +Inf");
104 double y = cosh(x);
113 atf_tc_set_md_var(tc, "descr", "Test cosh(
[all...]
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h53 __DEVICE__ double cosh(double);
54 __DEVICE__ float cosh(float);
212 using ::cosh;
H A D__clang_cuda_cmath.h51 __DEVICE__ float cosh(float __x) { return ::coshf(__x); } function
252 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, cosh)
379 using ::cosh;
H A D__clang_hip_cmath.h216 __DEF_FUN1(float, cosh)
492 __HIP_OVERLOAD1(double, cosh)
662 using ::cosh;
812 return cosh(x) * y;
H A Dtgmath.h317 // cosh
325 __tg_cosh(double __x) {return cosh(__x);}
343 #undef cosh macro
344 #define cosh(__x) __tg_cosh(__tg_promote1((__x))(__x)) macro
H A D__clang_cuda_math.h86 __DEVICE__ double cosh(double __a) { return __nv_cosh(__a); } function
/freebsd-current/contrib/llvm-project/clang/lib/Headers/openmp_wrappers/
H A Dcomplex_cmath.h273 cosh(__x.real()) * sin(__x.imag()));
276 // cosh
279 __DEVICE__ std::complex<_Tp> cosh(const std::complex<_Tp> &__x) { function in namespace:std
288 return std::complex<_Tp>(cosh(__x.real()) * cos(__x.imag()),
306 _Tp __d(cosh(__2r) + cos(__2i));
375 return cosh(complex<_Tp>(-__x.imag(), __x.real()));
/freebsd-current/tools/regression/include/tgmath/
H A Dtgmath.c85 TGMACRO(cosh)
443 PRINT("cosh",
444 PASS_REAL_ARG_REAL_RET(cosh) &&
445 PASS_COMPLEX_ARG_COMPLEX_RET(cosh));
/freebsd-current/lib/msun/
H A DMakefile174 cimag.3 clog.3 copysign.3 cos.3 cosh.3 cospi.3 \
212 MLINKS+=cosh.3 coshf.3 cosh.3 coshl.3
/freebsd-current/include/
H A Dtgmath.h150 #define cosh(x) __tg_full(x, cosh) macro
/freebsd-current/contrib/llvm-project/libcxx/include/
H A Dmath.h70 floating_point cosh (arithmetic x);
455 using std::__math::cosh;
/freebsd-current/contrib/arm-optimized-routines/pl/math/include/
H A Dmathlib.h41 double cosh (double);
/freebsd-current/lib/msun/tests/
H A Dctrig_test.c316 test_even_tol(ccosh, z, CMPLXL(cosh(nums[i]), 0), DBL_ULP());
345 test_even_tol(ccos, z, CMPLXL(cosh(nums[i]), -0.0), 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(1) + i cosh(
[all...]
/freebsd-current/contrib/lua/src/
H A Dlmathlib.c660 lua_pushnumber(L, l_mathop(cosh)(luaL_checknumber(L, 1)));
729 {"cosh", math_cosh},

Completed in 402 milliseconds

12