Searched refs:atan (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-current/contrib/arm-optimized-routines/pl/math/
H A Datan_2u5.c2 * Double-precision atan(x) function.
18 /* Fast implementation of double-precision atan.
19 Based on atan(x) ~ shift + z + z^3 * P(z^2) with reduction to [0,1] using
21 atan(0x1.0005af27c23e9p+0) got 0x1.9225645bdd7c1p-1
24 atan (double x) function
39 /* atan(x) rounds to PiOver2 for large x. */
46 /* For x > 1, use atan(x) = pi / 2 + atan(-1 / x). */
54 /* For x < 1, approximate atan(x) directly. */
66 PL_SIG (S, D, 1, atan,
[all...]
H A Dsv_atanf_2u9.c2 * Single-precision vector atan(x) function.
18 /* Coefficients of polynomial P such that atan(x)~x+x*P(x^2) on
28 atan(x) ~ shift + z + z^3 * P(z^2) with reduction to [0,1] using
33 svfloat32_t SV_NAME_F1 (atan) (svfloat32_t x, const svbool_t pg) function
67 /* y = atan(x) if x>0, -atan(-x) otherwise. */
71 PL_SIG (SV, F, 1, atan, -3.1, 3.1)
72 PL_TEST_ULP (SV_NAME_F1 (atan), 2.9)
73 PL_TEST_INTERVAL (SV_NAME_F1 (atan), 0.0, 1.0, 40000)
74 PL_TEST_INTERVAL (SV_NAME_F1 (atan), 1.
[all...]
H A Dv_atanf_3u.c2 * Single-precision vector atan(x) function.
18 /* Coefficients of polynomial P such that atan(x)~x+x*P(x^2) on
43 atan(x) ~ shift + z + z^3 * P(z^2) with reduction to [0,1]
46 float32x4_t VPCS_ATTR V_NAME_F1 (atan) (float32x4_t x) function
95 /* y = atan(x) if x>0, -atan(-x) otherwise. */
101 PL_SIG (V, F, 1, atan, -10.0, 10.0)
102 PL_TEST_ULP (V_NAME_F1 (atan), 2.5)
103 PL_TEST_EXPECT_FENV (V_NAME_F1 (atan), WANT_SIMD_EXCEPT)
104 PL_TEST_SYM_INTERVAL (V_NAME_F1 (atan),
[all...]
H A Dv_atan_2u5.c2 * Double-precision vector atan(x) function.
18 /* Coefficients of polynomial P such that atan(x)~x+x*P(x^2) on
37 /* Fast implementation of vector atan.
38 Based on atan(x) ~ shift + z + z^3 * P(z^2) with reduction to [0,1] using
42 float64x2_t VPCS_ATTR V_NAME_D1 (atan) (float64x2_t x) function
58 return v_call_f64 (atan, x, v_f64 (0), v_u64 (-1));
78 (atan(sqrt(x))-sqrt(x))/x^(3/2). */
91 /* y = atan(x) if x>0, -atan(-x) otherwise. */
96 PL_SIG (V, D, 1, atan,
[all...]
H A Dsv_atan_2u5.c2 * Double-precision vector atan(x) function.
18 /* Coefficients of polynomial P such that atan(x)~x+x*P(x^2) on
33 /* Fast implementation of SVE atan.
34 Based on atan(x) ~ shift + z + z^3 * P(z^2) with reduction to [0,1] using
39 svfloat64_t SV_NAME_D1 (atan) (svfloat64_t x, const svbool_t pg) function
76 /* y = atan(x) if x>0, -atan(-x) otherwise. */
82 PL_SIG (SV, D, 1, atan, -3.1, 3.1)
83 PL_TEST_ULP (SV_NAME_D1 (atan), 1.78)
84 PL_TEST_INTERVAL (SV_NAME_D1 (atan), 0.
[all...]
H A Datanf_2u9.c2 * Single-precision atan(x) function.
18 /* Approximation of single-precision atan(x) based on
19 atan(x) ~ shift + z + z^3 * P(z^2) with reduction to [0,1]
40 /* atan(x) rounds to PiOver2 for large x. */
47 /* For x > 1, use atan(x) = pi / 2 + atan(-1 / x). */
55 /* For x < 1, approximate atan(x) directly. */
67 PL_SIG (S, F, 1, atan, -10.0, 10.0)
/freebsd-current/contrib/netbsd-tests/lib/libm/
H A Dt_atan.c56 * atan(3)
58 ATF_LIBM_TEST(atan_nan, "Test atan/atanf(NaN) == NaN")
61 T_LIBM_CHECK_NAN(0, atan, T_LIBM_NAN);
68 ATF_LIBM_TEST(atan_inrange, "Test atan/atanf(x) for some values")
73 T_LIBM_CHECK(i, atan, values[i].x, values[i].y, 1.0e-15);
78 ATF_LIBM_TEST(atan_zero_neg, "Test atan/atanf(-0.0) == -0.0")
81 T_LIBM_CHECK_MINUS_ZERO(0, atan, -0.0);
85 ATF_LIBM_TEST(atan_zero_pos, "Test atan/atanf(+0.0) == +0.0")
88 T_LIBM_CHECK_PLUS_ZERO(0, atan, +0.0);
/freebsd-current/contrib/llvm-project/libcxx/include/__math/
H A Dinverse_trigonometric_functions.h59 // atan
61 inline _LIBCPP_HIDE_FROM_ABI float atan(float __x) _NOEXCEPT { return __builtin_atanf(__x); }
64 _LIBCPP_HIDE_FROM_ABI double atan(double __x) _NOEXCEPT {
68 inline _LIBCPP_HIDE_FROM_ABI long double atan(long double __x) _NOEXCEPT { return __builtin_atanl(__x); }
71 inline _LIBCPP_HIDE_FROM_ABI double atan(_A1 __x) _NOEXCEPT {
/freebsd-current/lib/msun/tests/
H A Dinvtrig_test.c122 * Test special case inputs in asin(), acos() and atan(): signed
131 testall(atan, 0.0, 0.0, 0);
134 testall(atan, -0.0, -0.0, 0);
138 testall(atan, INFINITY, pi / 2, FE_INEXACT);
141 testall(atan, -INFINITY, -pi / 2, FE_INEXACT);
145 testall(atan, NAN, NAN, 0);
235 * Test various inputs to asin(), acos() and atan() and verify that the
245 testall(atan, 1.0, pi / 4, FE_INEXACT);
248 testall(atan, -1.0, -pi / 4, FE_INEXACT);
263 testall_tol(atan, sqrt
[all...]
H A Dinvctrig_test.c300 testall_tol(catan, z, CMPLXL(atan(nums[i]), 0), 1);
313 * atan(z) = atan(4)/2 + i ln(17/9)/4
/freebsd-current/lib/msun/src/
H A Ds_atan.c12 /* atan(x)
14 * 1. Reduce x to positive by atan(x) = -atan(-x).
19 * [0,7/16] atan(x) = t-t^3*(a1+t^2*(a2+...(a10+t^2*a11)...)
20 * [7/16,11/16] atan(x) = atan(1/2) + atan( (t-0.5)/(1+t/2) )
21 * [11/16.19/16] atan(x) = atan( 1 ) + atan( (
70 atan(double x) function
[all...]
H A De_atan2.c70 if(hx==0x3ff00000&&lx==0) return atan(y); /* x=1.0 */
77 case 1: return y; /* atan(+-0,+anything)=+-0 */
78 case 2: return pi+tiny;/* atan(+0,-anything) = pi */
79 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */
89 case 0: return pi_o_4+tiny;/* atan(+INF,+INF) */
90 case 1: return -pi_o_4-tiny;/* atan(-INF,+INF) */
91 case 2: return 3.0*pi_o_4+tiny;/*atan(+INF,-INF)*/
92 case 3: return -3.0*pi_o_4-tiny;/*atan(-INF,-INF)*/
96 case 0: return zero ; /* atan(+...,+INF) */
97 case 1: return -zero ; /* atan(
[all...]
H A Dmath.h243 double atan(double);
H A Dcatrig.c584 /* To ensure the same accuracy as atan(), and to filter out z = 0. */
586 return (CMPLX(x, atan(y)));
/freebsd-current/contrib/llvm-project/clang/lib/Headers/
H A D__clang_cuda_math_forward_declares.h41 __DEVICE__ double atan(double);
42 __DEVICE__ float atan(float);
205 using ::atan;
H A D__clang_cuda_cmath.h47 __DEVICE__ float atan(float __x) { return ::atanf(__x); } function
245 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, atan)
372 using ::atan;
H A Dtgmath.h114 // atan
122 __tg_atan(double __x) {return atan(__x);}
140 #undef atan macro
141 #define atan(__x) __tg_atan(__tg_promote1((__x))(__x)) macro
H A D__clang_hip_cmath.h209 __DEF_FUN1(float, atan)
485 __HIP_OVERLOAD1(double, atan)
655 using ::atan;
/freebsd-current/contrib/ntp/clockstuff/
H A Dpropdelay.c62 extern double atan (double);
416 delta = atan((h / (EARTHRADIUS * sin(theta))) + tan(theta/2)) - theta;
439 phi = (PI/2.0) - atan((h / (EARTHRADIUS * sin(theta))) + tan(theta/2));
/freebsd-current/tools/regression/include/tgmath/
H A Dtgmath.c78 TGMACRO(atan)
415 PRINT("atan",
416 PASS_REAL_ARG_REAL_RET(atan) &&
417 PASS_COMPLEX_ARG_COMPLEX_RET(atan));
/freebsd-current/lib/msun/
H A DMakefile172 MAN= acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 \
190 MLINKS+=atan.3 atanf.3 atan.3 atanl.3
/freebsd-current/include/
H A Dtgmath.h143 #define atan(x) __tg_full(x, atan) macro
/freebsd-current/contrib/llvm-project/libcxx/include/
H A Dmath.h54 floating_point atan (arithmetic x);
448 using std::__math::atan;
/freebsd-current/contrib/arm-optimized-routines/pl/math/include/
H A Dmathlib.h37 double atan (double);
/freebsd-current/usr.bin/calendar/
H A Dsunpos.c52 #define ATAN(x) (R2D(atan(x)))

Completed in 162 milliseconds

12