/freebsd-current/lib/msun/i387/ |
H A D | s_tan.S | 37 ENTRY(tan) 56 END(tan)
|
/freebsd-current/lib/msun/src/ |
H A D | s_tan.c | 12 /* tan(x) 20 * Let S,C and T denote the sin, cos and tan respectively on 25 * n sin(x) cos(x) tan(x) 34 * Let trig be any of sin, cos, or tan. 50 tan(double x) function 66 /* tan(Inf or NaN) is NaN */ 78 __weak_reference(tan, tanl);
|
H A D | s_ctanh.c | 40 * Let t = tan(x) 53 * cosh(x) sinh(x) / cos^2(y) + I tan(y) 63 * I omitted the original algorithm's handling of overflow in tan(x) after 131 t = tan(y);
|
H A D | math.h | 247 double tan(double);
|
/freebsd-current/contrib/arm-optimized-routines/pl/math/ |
H A D | sv_tanf_3u5.c | 2 * Single-precision vector tan(x) function. 19 poly = fpminimax((tan(sqrt(x))-sqrt(x))/x^(3/2), 47 SV_NAME_F1 (tan)(-0x1.e5f0cap+13) got 0x1.ff9856p-1 49 svfloat32_t SV_NAME_F1 (tan) (svfloat32_t x, const svbool_t pg) function 64 /* Determine if x lives in an interval, where |tan(x)| grows to infinity. */ 74 /* If x lives in an interval, where |tan(x)| 76 tan(r) ~ r + r^3 * P(r^2) = r + r * r^2 * P(r^2). 78 tan(r) = cotan(pi/2 - r) to express tan(x) as 1/tan( [all...] |
H A D | v_tan_3u5.c | 2 * Double-precision vector tan(x) function. 43 return v_call_f64 (tan, x, x, v_u64 (-1)); 46 /* Vector approximation for double-precision tan. 50 float64x2_t VPCS_ATTR V_NAME_D1 (tan) (float64x2_t x) function 80 /* Approximate tan(r) using order 8 polynomial. 81 tan(x) is odd, so polynomial has the form: 82 tan(x) ~= x + C0 * x^3 + C1 * x^5 + C3 * x^7 + ... 85 tan(r) ~= r + r^3 * (C0 + r^2 * P(r)). */ 94 tan(2x) = 2 * tan( [all...] |
H A D | v_tanf_3u5.c | 2 * Single-precision vector tan(x) function. 67 float32x4_t VPCS_ATTR V_NAME_F1 (tan) (float32x4_t x) function 90 /* Determine if x lives in an interval, where |tan(x)| grows to infinity. */ 99 /* If x lives in an interval, where |tan(x)| 101 tan(r) ~ r + r^3 * P(r^2) = r + r * r^2 * P(r^2). 103 tan(r) = cotan(pi/2 - r) to express tan(x) as 1/tan(-r). Finally, use 104 the same polynomial approximation of tan as above. */ 122 PL_SIG (V, F, 1, tan, [all...] |
H A D | sv_tan_3u5.c | 2 * Double-precision SVE tan(x) function. 33 return sv_call_f64 (tan, x, y, special); 36 /* Vector approximation for double-precision tan. 40 svfloat64_t SV_NAME_D1 (tan) (svfloat64_t x, svbool_t pg) function 63 /* Approximate tan(r) using order 8 polynomial. 64 tan(x) is odd, so polynomial has the form: 65 tan(x) ~= x + C0 * x^3 + C1 * x^5 + C3 * x^7 + ... 68 tan(r) ~= r + r^3 * (C0 + r^2 * P(r)). */ 78 tan(2x) = 2 * tan( [all...] |
H A D | tanf_3u3.c | 2 * Single-precision scalar tan(x) function. 100 /* Fast single-precision tan implementation. 127 /* tan (x) ~= x + x^3 * P(x^2). */ 153 /* tan(Inf or NaN) is NaN. */ 157 /* If x lives in an interval where |tan(x)| 159 tan(r) ~ r + r^3 * P(r^2) = r + r * r^2 * P(r^2). 162 Using symmetries of tangent and the identity tan(r) = cotan(pi/2 - r), 163 we only need to change the sign of r to obtain tan(x) from cotan(r). 167 /* Determine if x lives in an interval where |tan(x)| grows to infinity. */ 178 /* Evaluate polynomial approximation of tan o [all...] |
/freebsd-current/contrib/llvm-project/libcxx/include/__math/ |
H A D | trigonometric_functions.h | 56 // tan 58 inline _LIBCPP_HIDE_FROM_ABI float tan(float __x) _NOEXCEPT { return __builtin_tanf(__x); } 61 _LIBCPP_HIDE_FROM_ABI double tan(double __x) _NOEXCEPT { 65 inline _LIBCPP_HIDE_FROM_ABI long double tan(long double __x) _NOEXCEPT { return __builtin_tanl(__x); } 68 inline _LIBCPP_HIDE_FROM_ABI double tan(_A1 __x) _NOEXCEPT {
|
/freebsd-current/lib/msun/tests/ |
H A D | trig_test.c | 84 "test special cases in sin(), cos(), and tan()"); 90 testall(tan, 0.0, 0.0, ALL_STD_EXCEPT, 0); 91 testall(tan, -0.0, -0.0, ALL_STD_EXCEPT, 0); 98 testall(tan, INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 101 testall(tan, -INFINITY, NAN, ALL_STD_EXCEPT, FE_INVALID); 106 testall(tan, NAN, NAN, ALL_STD_EXCEPT, 0); 166 ATF_CHECK(fabs(tan(f_pi_odd[i])) < FLT_EPSILON); 184 ATF_CHECK(fabs(tan(d_pi_odd[i])) < 2 * DBL_EPSILON); 188 ATF_CHECK(fabs(tan(-d_pi_odd[i])) < 2 * DBL_EPSILON); 192 ATF_CHECK(fabs(tan(d_pi_od [all...] |
H A D | ctrig_test.c | 322 test_odd_tol(ctan, z, CMPLXL(tan(nums[i]), 0), DBL_ULP()); 343 test_odd_tol(ctanh, z, CMPLXL(0, tan(nums[i])), DBL_ULP());
|
/freebsd-current/contrib/netbsd-tests/lib/libm/ |
H A D | t_tan.c | 58 * tan(3) 80 ok = (tan(theta) == 0); 83 ok = (fabs((tan(theta) - tan_theta)/tan_theta) <= eps); 87 atf_tc_fail_nonfatal("tan(%d deg = %.17g) = %.17g" 89 deg, theta, tan(theta), tan_theta); 97 atf_tc_set_md_var(tc, "descr", "Test tan(NaN) == NaN"); 105 ATF_CHECK(isnan(tan(x)) != 0); 111 atf_tc_set_md_var(tc, "descr", "Test tan(-Inf) == NaN"); 118 ATF_CHECK(isnan(tan(x)) != 0); 124 atf_tc_set_md_var(tc, "descr", "Test tan( [all...] |
/freebsd-current/contrib/llvm-project/clang/lib/Headers/ |
H A D | __clang_cuda_math_forward_declares.h | 174 __DEVICE__ double tan(double); 175 __DEVICE__ float tan(float); 268 using ::tan;
|
H A D | __clang_cuda_cmath.h | 175 __DEVICE__ float tan(float __x) { return ::tanf(__x); } function 297 __CUDA_CLANG_FN_INTEGER_OVERLOAD_1(double, tan) 428 using ::tan;
|
H A D | tgmath.h | 288 // tan 296 __tg_tan(double __x) {return tan(__x);} 314 #undef tan macro 315 #define tan(__x) __tg_tan(__tg_promote1((__x))(__x)) macro
|
H A D | __clang_hip_cmath.h | 251 __DEF_FUN1(float, tan) 539 __HIP_OVERLOAD1(double, tan) 716 using ::tan;
|
/freebsd-current/contrib/ntp/clockstuff/ |
H A D | propdelay.c | 61 extern double tan (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 D | tgmath.c | 84 TGMACRO(tan) 439 PRINT("tan", 440 PASS_REAL_ARG_REAL_RET(tan) && 441 PASS_COMPLEX_ARG_COMPLEX_RET(tan));
|
/freebsd-current/lib/msun/ |
H A D | Makefile | 183 sinh.3 sinpi.3 sqrt.3 tan.3 tanh.3 tanpi.3 trunc.3 \ 269 MLINKS+=tan.3 tanf.3 tan.3 tanl.3
|
/freebsd-current/include/ |
H A D | tgmath.h | 149 #define tan(x) __tg_full(x, tan) macro
|
/freebsd-current/contrib/llvm-project/libcxx/include/__random/ |
H A D | cauchy_distribution.h | 102 // purposefully let tan arg get as close to pi/2 as it wants, tan will return a finite 103 return __p.a() + __p.b() * std::tan(3.1415926535897932384626433832795 * __gen(__g));
|
/freebsd-current/contrib/llvm-project/libcxx/include/ |
H A D | math.h | 126 floating_point tan (arithmetic x); 497 using std::__math::tan;
|
/freebsd-current/usr.bin/calendar/ |
H A D | sunpos.c | 50 #define TAN(x) (tan(D2R(x)))
|
/freebsd-current/contrib/lua/src/ |
H A D | lmathlib.c | 51 lua_pushnumber(L, l_mathop(tan)(luaL_checknumber(L, 1))); 725 {"tan", math_tan},
|