Lines Matching refs:atan
2 * 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)
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, -10.0, 10.0)
67 PL_TEST_ULP (atan, 1.78)
68 PL_TEST_INTERVAL (atan, 0, 0x1p-30, 10000)
69 PL_TEST_INTERVAL (atan, -0, -0x1p-30, 1000)
70 PL_TEST_INTERVAL (atan, 0x1p-30, 0x1p53, 900000)
71 PL_TEST_INTERVAL (atan, -0x1p-30, -0x1p53, 90000)
72 PL_TEST_INTERVAL (atan, 0x1p53, inf, 10000)
73 PL_TEST_INTERVAL (atan, -0x1p53, -inf, 1000)