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

12

/freebsd-12-stable/contrib/netbsd-tests/lib/libm/
H A Dt_acos.c37 * 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-12-stable/lib/msun/tests/
H A Dinvtrig_test.c123 * Test special case inputs in asin(), acos() and atan(): signed
131 testall(acos, 0.0, pi / 2, FE_INEXACT);
134 testall(acos, -0.0, pi / 2, FE_INEXACT);
138 testall(acos, INFINITY, NAN, FE_INVALID);
141 testall(acos, -INFINITY, NAN, FE_INVALID);
145 testall(acos, NAN, NAN, 0);
236 * Test various inputs to asin(), acos() and atan() and verify that the
245 testall(acos, 1.0, 0, 0);
248 testall(acos, -1.0, pi, FE_INEXACT);
258 testall_tol(acos, sqrt
[all...]
H A Dinvctrig_test.c286 testall_tol(cacosh, z, CMPLXL(0.0, acos(nums[i])), 1);
315 * acos(z) = Pi/4 - i ln(2)/2
/freebsd-12-stable/contrib/libstdc++/include/c_compatibility/
H A Dmath.h36 using std::acos;
/freebsd-12-stable/contrib/libstdc++/libmath/
H A Dstubs.c58 return (float) acos(x);
66 return acos((double) x);
/freebsd-12-stable/contrib/libstdc++/include/c/
H A Dstd_cmath.h46 #undef acos macro
/freebsd-12-stable/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h54 __DEVICE__ double acos(double);
55 __DEVICE__ float acos(float);
224 using ::acos;
H A D__clang_cuda_cmath.h59 __DEVICE__ float acos(float __x) { return ::acosf(__x); } function
212 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, acos)
339 using ::acos;
H A Dtgmath.h56 // acos
64 __tg_acos(double __x) {return acos(__x);}
82 #undef acos macro
83 #define acos(__x) __tg_acos(__tg_promote1((__x))(__x)) macro
/freebsd-12-stable/contrib/libstdc++/include/tr1/
H A Dmath.h41 using std::tr1::acos;
/freebsd-12-stable/lib/msun/src/
H A De_acos.c19 * acos(x) = pi/2 - asin(x)
20 * acos(-x) = pi/2 + asin(x)
22 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c)
24 * acos(x) = pi/2 - (pi/2 - 2asin(sqrt((1-x)/2)))
31 * acos(x) = pi - 2asin(sqrt((1-|x|)/2))
75 if(hx>0) return 0.0; /* acos(1) = 0 */
76 else return pi+2.0*pio2_lo; /* acos(-1)= pi */
78 return (x-x)/(x-x); /* acos(|x|>1) is NaN */
110 __weak_reference(acos, acosl);
H A Dcatrig.c413 rx = acos(B);
415 rx = acos(-B);
H A Dmath.h237 double acos(double);
H A Dmath_private.h832 #define __ieee754_acos acos
/freebsd-12-stable/contrib/gcc/
H A Dfp-test.c44 extern double acos (double);
228 d1 = acos (d2);
/freebsd-12-stable/contrib/libstdc++/include/c_std/
H A Dstd_cmath.h59 #undef acos macro
100 using ::acos;
103 acos(float __x) function
107 acos(long double __x) function
113 acos(_Tp __x) function
/freebsd-12-stable/contrib/ntp/clockstuff/
H A Dpropdelay.c60 extern double acos (double);
390 dg = EARTHRADIUS * acos(
/freebsd-12-stable/tools/regression/include/tgmath/
H A Dtgmath.c78 TGMACRO(acos)
409 PRINT("acos",
410 PASS_REAL_ARG_REAL_RET(acos) &&
411 PASS_COMPLEX_ARG_COMPLEX_RET(acos));
/freebsd-12-stable/lib/msun/
H A DMakefile155 MAN= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 \
168 MLINKS+=acos.3 acosf.3 acos.3 acosl.3
/freebsd-12-stable/include/
H A Dtgmath.h143 #define acos(x) __tg_full(x, acos) macro
/freebsd-12-stable/contrib/lua/src/
H A Dlmathlib.c71 lua_pushnumber(L, l_mathop(acos)(luaL_checknumber(L, 1)));
354 {"acos", math_acos},
/freebsd-12-stable/contrib/libstdc++/src/
H A Dcompatibility.cc417 _GLIBCXX_MATHL_WRAPPER1 (acos, GLIBCXX_3.4.3);
/freebsd-12-stable/contrib/llvm-project/libcxx/include/
H A Dmath.h46 floating_point acos (arithmetic x);
819 // acos
822 inline _LIBCPP_INLINE_VISIBILITY float acos(float __lcpp_x) _NOEXCEPT {return ::acosf(__lcpp_x);}
823 inline _LIBCPP_INLINE_VISIBILITY long double acos(long double __lcpp_x) _NOEXCEPT {return ::acosl(__lcpp_x);}
829 acos(_A1 __lcpp_x) _NOEXCEPT {return ::acos((double)__lcpp_x);}
/freebsd-12-stable/contrib/libstdc++/include/bits/
H A Dvalarray_before.h85 { return acos(__t); }
/freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp1461 Res0 = acos(opr0);
1470 Res0 = acos(opr0) / MATH_PI;

Completed in 292 milliseconds

12