/freebsd-current/contrib/arm-optimized-routines/pl/math/ |
H A D | acos_2u.c | 2 * Double-precision acos(x) function. 22 /* Fast implementation of double-precision acos(x) based on polynomial 25 For x < Small, approximate acos(x) by pi/2 - x. Small = 2^-53 for correct 30 acos(x) = pi/2 - asin(x) 36 acos(0x1.fbab0a7c460f6p-2) got 0x1.0d54d1985c068p+0 39 For |x| in [0.5, 1.0], use the following development of acos(x) near x = 1 41 acos(x) ~ pi/2 - 2 * sqrt(z) (1 + z * P(z)) 47 acos(0x1.23d362722f591p-1) got 0x1.edbbedf8a7d6ep-1 51 from their absolute value: acos(x) = pi - acos( 53 acos (double x) function [all...] |
H A D | sv_acosf_1u4.c | 2 * Single-precision SVE acos(x) function. 26 /* Single-precision SVE implementation of vector acos(x). 31 acos(x) ~ pi/2 - (x + x^3 P(x^2)). 39 acos(x) = y + y * z * P(z), with z = (1-x)/2 and y = sqrt(z). 44 svfloat32_t SV_NAME_F1 (acos) (svfloat32_t x, const svbool_t pg) function 64 /* acos(|x|) = pi/2 - sign(x) * Q(|x|), for |x| < 0.5 78 PL_SIG (SV, F, 1, acos, -1.0, 1.0) 79 PL_TEST_ULP (SV_NAME_F1 (acos), 0.82) 80 PL_TEST_INTERVAL (SV_NAME_F1 (acos), 0, 0.5, 50000) 81 PL_TEST_INTERVAL (SV_NAME_F1 (acos), 0. [all...] |
H A D | v_acosf_1u4.c | 2 * Single-precision vector acos(x) function. 39 /* Single-precision implementation of vector acos(x). 41 For |x| < Small, approximate acos(x) by pi/2 - x. Small = 2^-26 for correct 49 acos(x) ~ pi/2 - (x + x^3 P(x^2)). 56 acos(x) = y + y * z * P(z), with z = (1-x)/2 and y = sqrt(z). 61 float32x4_t VPCS_ATTR V_NAME_F1 (acos) (float32x4_t x) function 91 /* acos(|x|) = pi/2 - sign(x) * Q(|x|), for |x| < 0.5 105 PL_SIG (V, F, 1, acos, -1.0, 1.0) 106 PL_TEST_ULP (V_NAME_F1 (acos), 0.82) 107 PL_TEST_EXPECT_FENV (V_NAME_F1 (acos), WANT_SIMD_EXCEP [all...] |
H A D | sv_acos_2u.c | 2 * Double-precision SVE acos(x) function. 28 /* Double-precision SVE implementation of vector acos(x). 33 acos(x) ~ pi/2 - (x + x^3 P(x^2)). 41 acos(x) = y + y * z * P(z), with z = (1-x)/2 and y = sqrt(z). 46 svfloat64_t SV_NAME_D1 (acos) (svfloat64_t x, const svbool_t pg) function 71 /* acos(|x|) = pi/2 - sign(x) * Q(|x|), for |x| < 0.5 85 PL_SIG (SV, D, 1, acos, -1.0, 1.0) 86 PL_TEST_ULP (SV_NAME_D1 (acos), 1.02) 87 PL_TEST_INTERVAL (SV_NAME_D1 (acos), 0, 0.5, 50000) 88 PL_TEST_INTERVAL (SV_NAME_D1 (acos), 0. [all...] |
H A D | v_acos_2u.c | 2 * Double-precision vector acos(x) function. 40 return v_call_f64 (acos, x, y, special); 44 /* Double-precision implementation of vector acos(x). 46 For |x| < Small, approximate acos(x) by pi/2 - x. Small = 2^-53 for correct 54 acos(x) ~ pi/2 - (x + x^3 P(x^2)). 62 acos(x) = y + y * z * P(z), with z = (1-x)/2 and y = sqrt(z). 67 float64x2_t VPCS_ATTR V_NAME_D1 (acos) (float64x2_t x) function 100 /* acos(|x|) = pi/2 - sign(x) * Q(|x|), for |x| < 0.5 114 PL_SIG (V, D, 1, acos, -1.0, 1.0) 115 PL_TEST_ULP (V_NAME_D1 (acos), 1.0 [all...] |
H A D | acosf_1u4.c | 2 * Single-precision acos(x) function. 22 /* Fast implementation of single-precision acos(x) based on polynomial 25 For x < Small, approximate acos(x) by pi/2 - x. Small = 2^-26 for correct 30 acos(x) = pi/2 - asin(x) 38 For |x| in [0.5, 1.0], use the following development of acos(x) near x = 1 40 acos(x) ~ pi/2 - 2 * sqrt(z) (1 + z * P(z)) 51 acos(x) = pi - acos(-x) 83 /* acos(|x|) = pi/2 - sign(x) * Q(|x|), for |x| < 0.5 92 PL_SIG (S, F, 1, acos, [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libm/ |
H A D | t_acos.c | 37 * acos(3) and acosf(3) 40 ATF_LIBM_TEST(acos_is_nan, "Test acos/acosf(x) == NaN, x = NaN, +/-Inf, ![-1..1]") 54 T_LIBM_CHECK_NAN(i, acos, x[i]); 62 ATF_LIBM_TEST(acos_inrange, "Test acos/acosf(x) for some valid values") 80 * Note that acos(x) might be calculated as atan2(sqrt(1-x*x),x). 81 * This means that acos(-1) is atan2(+0,-1), if the sign is wrong 86 T_LIBM_CHECK(i, acos, values[i].x, values[i].y, 1.0e-15); 93 T_LIBM_CHECK_PLUS_ZERO(0, acos, 1.0);
|
/freebsd-current/contrib/llvm-project/libcxx/include/__math/ |
H A D | inverse_trigonometric_functions.h | 27 // acos 29 inline _LIBCPP_HIDE_FROM_ABI float acos(float __x) _NOEXCEPT { return __builtin_acosf(__x); } 32 _LIBCPP_HIDE_FROM_ABI double acos(double __x) _NOEXCEPT { 36 inline _LIBCPP_HIDE_FROM_ABI long double acos(long double __x) _NOEXCEPT { return __builtin_acosl(__x); } 39 inline _LIBCPP_HIDE_FROM_ABI double acos(_A1 __x) _NOEXCEPT {
|
/freebsd-current/lib/msun/tests/ |
H A D | invtrig_test.c | 122 * Test special case inputs in asin(), acos() and atan(): signed 130 testall(acos, 0.0, pi / 2, FE_INEXACT); 133 testall(acos, -0.0, pi / 2, FE_INEXACT); 137 testall(acos, INFINITY, NAN, FE_INVALID); 140 testall(acos, -INFINITY, NAN, FE_INVALID); 144 testall(acos, NAN, NAN, 0); 235 * Test various inputs to asin(), acos() and atan() and verify that the 244 testall(acos, 1.0, 0, 0); 247 testall(acos, -1.0, pi, FE_INEXACT); 257 testall_tol(acos, sqrt [all...] |
H A D | invctrig_test.c | 282 testall_tol(cacosh, z, CMPLXL(0.0, acos(nums[i])), 1); 311 * acos(z) = Pi/4 - i ln(2)/2
|
/freebsd-current/lib/msun/src/ |
H A D | e_acos.c | 13 /* acos(x) 15 * acos(x) = pi/2 - asin(x) 16 * acos(-x) = pi/2 + asin(x) 18 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c) 20 * acos(x) = pi/2 - (pi/2 - 2asin(sqrt((1-x)/2))) 27 * acos(x) = pi - 2asin(sqrt((1-|x|)/2)) 61 acos(double x) function 71 if(hx>0) return 0.0; /* acos(1) = 0 */ 72 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ 74 return (x-x)/(x-x); /* acos(| [all...] |
H A D | catrig.c | 410 rx = acos(B); 412 rx = acos(-B);
|
H A D | math.h | 241 double acos(double);
|
/freebsd-current/contrib/llvm-project/clang/lib/Headers/ |
H A D | __clang_cuda_math_forward_declares.h | 31 __DEVICE__ double acos(double); 32 __DEVICE__ float acos(float); 201 using ::acos;
|
H A D | __clang_cuda_cmath.h | 45 __DEVICE__ float acos(float __x) { return ::acosf(__x); } function 241 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, acos) 368 using ::acos;
|
H A D | tgmath.h | 56 // acos 64 __tg_acos(double __x) {return acos(__x);} 82 #undef acos macro 83 #define acos(__x) __tg_acos(__tg_promote1((__x))(__x)) macro
|
H A D | __clang_hip_cmath.h | 205 __DEF_FUN1(float, acos) 481 __HIP_OVERLOAD1(double, acos) 651 using ::acos;
|
H A D | __clang_cuda_math.h | 58 __DEVICE__ double acos(double __a) { return __nv_acos(__a); } function
|
/freebsd-current/contrib/ntp/clockstuff/ |
H A D | propdelay.c | 60 extern double acos (double); 390 dg = EARTHRADIUS * acos(
|
/freebsd-current/tools/regression/include/tgmath/ |
H A D | tgmath.c | 76 TGMACRO(acos) 407 PRINT("acos", 408 PASS_REAL_ARG_REAL_RET(acos) && 409 PASS_COMPLEX_ARG_COMPLEX_RET(acos));
|
/freebsd-current/lib/msun/ |
H A D | Makefile | 172 MAN= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 \ 186 MLINKS+=acos.3 acosf.3 acos.3 acosl.3
|
/freebsd-current/include/ |
H A D | tgmath.h | 141 #define acos(x) __tg_full(x, acos) macro
|
/freebsd-current/contrib/llvm-project/libcxx/include/ |
H A D | math.h | 46 floating_point acos (arithmetic x); 444 using std::__math::acos;
|
/freebsd-current/contrib/arm-optimized-routines/pl/math/include/ |
H A D | mathlib.h | 33 double acos (double);
|
/freebsd-current/contrib/lua/src/ |
H A D | lmathlib.c | 61 lua_pushnumber(L, l_mathop(acos)(luaL_checknumber(L, 1))); 707 {"acos", math_acos},
|