/third_party/skia/resources/sksl/intrinsics/ |
D | Tan.sksl | 6 return (tan(inputVal.x) == expected.x && 7 tan(inputVal.xy) == expected.xy && 8 tan(inputVal.xyz) == expected.xyz && 9 tan(inputVal.xyzw) == expected.xyzw && 10 tan(constVal.x) == expected.x && 11 tan(constVal.xy) == expected.xy && 12 tan(constVal.xyz) == expected.xyz && 13 tan(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
/third_party/jerryscript/tests/unit-libm/ |
D | test-libm.inc.h | 732 check_double ("tan (0.0)", tan (0.0), 0.00000000000000000000E+00); 733 check_double ("tan (-0.0)", tan (-0.0), -0.00000000000000000000E+00); 734 check_double ("tan (1.0)", tan (1.0), 1.55740772465490229237E+00); 735 check_double ("tan (-1.0)", tan (-1.0), -1.55740772465490229237E+00); 736 check_double ("tan (INFINITY)", tan (INFINITY), -NAN); 737 check_double ("tan (-INFINITY)", tan (-INFINITY), -NAN); 738 check_double ("tan (NAN)", tan (NAN), NAN); 739 check_double ("tan (M_PI)", tan (M_PI), -1.22464679914735320717E-16); 740 check_double ("tan (-M_PI)", tan (-M_PI), 1.22464679914735320717E-16); 741 check_double ("tan (2.0 * M_PI)", tan (2.0 * M_PI), -2.44929359829470641435E-16); [all …]
|
/third_party/jerryscript/tools/unit-tests/ |
D | gen-test-libm.c | 931 GEN_DBL_TEST (tan (0.0)); in main() 932 GEN_DBL_TEST (tan (-0.0)); in main() 933 GEN_DBL_TEST (tan (1.0)); in main() 934 GEN_DBL_TEST (tan (-1.0)); in main() 935 GEN_DBL_TEST (tan (INFINITY)); in main() 936 GEN_DBL_TEST (tan (-INFINITY)); in main() 937 GEN_DBL_TEST (tan (NAN)); in main() 938 GEN_DBL_TEST (tan (M_PI)); in main() 939 GEN_DBL_TEST (tan (-M_PI)); in main() 940 GEN_DBL_TEST (tan (2.0 * M_PI)); in main() [all …]
|
/third_party/boost/boost/geometry/srs/projections/proj/ |
D | sconics.hpp | 118 rho = this->m_proj_parm.rho_c + tan(this->m_proj_parm.sig - lp_lat); in fwd() 121 … rho = this->m_proj_parm.c2 * (this->m_proj_parm.c1 - tan(lp_lat - this->m_proj_parm.sig)); in fwd() 187 proj_parm.rho_c = sin(del)/(del * tan(proj_parm.sig)) + proj_parm.sig; in setup() 192 proj_parm.rho_c = (cs = sqrt(cos(del))) / tan(proj_parm.sig); in setup() 193 proj_parm.rho_0 = proj_parm.rho_c + tan(proj_parm.sig - par.phi0); in setup() 197 proj_parm.rho_c = del / (tan(proj_parm.sig) * tan(del)) + proj_parm.sig; in setup() 199 proj_parm.n = sin(proj_parm.sig) * sin(del) * tan(del) / (del * del); in setup() 204 proj_parm.rho_c = del / (tan(del) * tan(proj_parm.sig)) + proj_parm.sig; in setup() 210 proj_parm.c1 = 1./tan(proj_parm.sig); in setup() 213 proj_parm.rho_0 = proj_parm.c2 * (proj_parm.c1 - tan(del)); in setup() [all …]
|
D | geos.hpp | 90 lp_lat = atan (this->m_proj_parm.radius_p2 * tan (lp_lat)); in fwd() 126 Vz = tan (xy_y / this->m_proj_parm.radius_g_1); in inv() 127 … Vy = tan (xy_x / this->m_proj_parm.radius_g_1) * boost::math::hypot(1.0, Vz); in inv() 129 Vy = tan (xy_x / this->m_proj_parm.radius_g_1); in inv() 130 … Vz = tan (xy_y / this->m_proj_parm.radius_g_1) * boost::math::hypot(1.0, Vy); in inv() 150 lp_lat = atan (this->m_proj_parm.radius_p_inv2 * tan (lp_lat)); in inv() 204 Vz = tan (xy_y / (this->m_proj_parm.radius_g - 1.0)); in inv() 205 Vy = tan (xy_x / (this->m_proj_parm.radius_g - 1.0)) * sqrt (1.0 + Vz * Vz); in inv() 207 Vy = tan (xy_x / (this->m_proj_parm.radius_g - 1.0)); in inv() 208 Vz = tan (xy_y / (this->m_proj_parm.radius_g - 1.0)) * sqrt (1.0 + Vy * Vy); in inv()
|
D | krovak.hpp | 117 …u = 2. * (atan(this->m_proj_parm.k * math::pow( tan(lp_lat / T(2) + S45), this->m_proj_parm.alpha)… in fwd() 124 …rho = this->m_proj_parm.rho0 * math::pow(tan(S0 / T(2) + S45) , this->m_proj_parm.n) / math::pow(t… in fwd() 152 …atan(math::pow(this->m_proj_parm.rho0 / rho, T(1) / this->m_proj_parm.n) * tan(S0 / T(2) + S45)) -… in inv() 164 … math::pow( tan(u / T(2) + S45) , T(1) / this->m_proj_parm.alpha) * in inv() 218 … proj_parm.k = tan( u0 / 2. + S45) / math::pow(tan(par.phi0 / T(2) + S45) , proj_parm.alpha) * g; in setup_krovak() 221 proj_parm.rho0 = par.k0 * n0 / tan(S0); in setup_krovak()
|
D | somerc.hpp | 84 … log(tan(fourth_pi + 0.5 * lp_lat)) - this->m_proj_parm.hlf_e * log((1. + sp)/(1. - sp))) in fwd() 91 xy_y = this->m_proj_parm.kR * log(tan(fourth_pi + 0.5 * phipp)); in fwd() 108 … con = (this->m_proj_parm.K - log(tan(fourth_pi + 0.5 * phip)))/this->m_proj_parm.c; in inv() 111 delp = (con + log(tan(fourth_pi + 0.5 * phip)) - this->m_proj_parm.hlf_e * in inv() 148 proj_parm.K = log(tan(fourth_pi + 0.5 * phip0)) - proj_parm.c * ( in setup_somerc() 149 log(tan(fourth_pi + 0.5 * par.phi0)) - proj_parm.hlf_e * in setup_somerc()
|
/third_party/skia/tests/sksl/intrinsics/ |
D | Tan.glsl | 8 …return ((((((tan(inputVal.x) == expected.x && tan(inputVal.xy) == expected.xy) && tan(inputVal.xyz…
|
D | Tan.metal | 18 …tan(_uniforms.inputVal.x) == _uniforms.expected.x && all(tan(_uniforms.inputVal.xy) == _uniforms.e…
|
/third_party/python/Lib/test/ |
D | ieee754.txt | 149 >>> tan(INF) 153 >>> tan(NINF) 157 >>> tan(NAN) 160 Neither pi nor tan are exact, but you can assume that tan(pi/2) is a large value 161 and tan(pi) is a very small value: 162 >>> tan(PI/2) > 1E10 164 >>> -tan(-PI/2) > 1E10 166 >>> tan(PI) < 1E-15
|
D | cmath_testcases.txt | 1586 -- Similarly, for cos, sin and tan we limit tests to arguments 2255 -- tan: Tangent -- 2259 tan0000 tan 0.0 0.0 -> 0.0 0.0 2260 tan0001 tan 0.0 -0.0 -> 0.0 -0.0 2261 tan0002 tan -0.0 0.0 -> -0.0 0.0 2262 tan0003 tan -0.0 -0.0 -> -0.0 -0.0 2265 tan0004 tan -0.56378561833861074 -1.7110276237187664e+73 -> -0.0 -1.0 2266 tan0005 tan -3.5451633993471915e-12 -2.855471863564059 -> -4.6622441304889575e-14 -0.99340273843093… 2267 tan0006 tan -2.502442719638696 -0.26742234390504221 -> 0.66735215252994995 -0.39078997935420956 2268 tan0007 tan -0.87639597720371365 -55.586225523280206 -> -1.0285264565948176e-48 -1.0 [all …]
|
/third_party/flutter/skia/gm/ |
D | drawatlas.cpp | 155 SkVector tan; local 156 if (!meas.getPosTan(xy[i].x() + offset, &pos, &tan)) { 158 tan.set(1, 0); 160 pos += SkVector::Make(-tan.fY, tan.fX) * baseline_offset; 162 xform[i].fSCos = tan.x(); 163 xform[i].fSSin = tan.y(); 164 xform[i].fTx = pos.x() - tan.y() * xy[i].y() - tan.x() * offset; 165 xform[i].fTy = pos.y() + tan.x() * xy[i].y() - tan.y() * offset;
|
D | overstroke.cpp | 102 SkVector tan; in ribs_path() local 104 if (meas.getPosTan(accum, &pos, &tan)) { in ribs_path() 105 tan.scale(radius); in ribs_path() 106 SkPointPriv::RotateCCW(&tan); in ribs_path() 108 ribs.moveTo(pos.x() + tan.x(), pos.y() + tan.y()); in ribs_path() 109 ribs.lineTo(pos.x() - tan.x(), pos.y() - tan.y()); in ribs_path()
|
/third_party/skia/gm/ |
D | overstroke.cpp | 92 SkVector tan; in ribs_path() local 94 if (meas.getPosTan(accum, &pos, &tan)) { in ribs_path() 95 tan.scale(radius); in ribs_path() 96 SkPointPriv::RotateCCW(&tan); in ribs_path() 98 ribs.moveTo(pos.x() + tan.x(), pos.y() + tan.y()); in ribs_path() 99 ribs.lineTo(pos.x() - tan.x(), pos.y() - tan.y()); in ribs_path()
|
D | drawatlas.cpp | 157 SkVector tan; local 158 if (!meas.getPosTan(xy[i].x() + offset, &pos, &tan)) { 160 tan.set(1, 0); 162 pos += SkVector::Make(-tan.fY, tan.fX) * baseline_offset; 164 xform[i].fSCos = tan.x(); 165 xform[i].fSSin = tan.y(); 166 xform[i].fTx = pos.x() - tan.y() * xy[i].y() - tan.x() * offset; 167 xform[i].fTy = pos.y() + tan.x() * xy[i].y() - tan.y() * offset;
|
/third_party/skia/samplecode/ |
D | SampleQuadStroker.cpp | 320 SkPoint pos, tan; in draw_ribs() local 323 if (meas.getPosTan(dist, &pos, &tan)) { in draw_ribs() 324 tan.scale(radius); in draw_ribs() 325 SkPointPriv::RotateCCW(&tan); in draw_ribs() 326 canvas->drawLine(pos.x() + tan.x(), pos.y() + tan.y(), in draw_ribs() 327 pos.x() - tan.x(), pos.y() - tan.y(), paint); in draw_ribs() 334 pos.x() - tan.x() * 1.25f, pos.y() - tan.y() * 1.25f, font, labelP); in draw_ribs() 360 SkPoint pos, tan; in draw_t_divs() local 365 tan = pts[1] - pts[0]; in draw_t_divs() 367 pos.fX += tan.fX * t; in draw_t_divs() [all …]
|
/third_party/flutter/skia/samplecode/ |
D | SampleQuadStroker.cpp | 327 SkPoint pos, tan; in draw_ribs() local 330 if (meas.getPosTan(dist, &pos, &tan)) { in draw_ribs() 331 tan.scale(radius); in draw_ribs() 332 SkPointPriv::RotateCCW(&tan); in draw_ribs() 333 canvas->drawLine(pos.x() + tan.x(), pos.y() + tan.y(), in draw_ribs() 334 pos.x() - tan.x(), pos.y() - tan.y(), paint); in draw_ribs() 341 pos.x() - tan.x() * 1.25f, pos.y() - tan.y() * 1.25f, font, labelP); in draw_ribs() 367 SkPoint pos, tan; in draw_t_divs() local 372 tan = pts[1] - pts[0]; in draw_t_divs() 374 pos.fX += tan.fX * t; in draw_t_divs() [all …]
|
/third_party/boost/boost/geometry/srs/projections/impl/ |
D | pj_gauss.hpp | 76 using std::tan; in gauss_ini() 93 en.K = tan(0.5 * chi + fourth_pi) in gauss_ini() 94 / (math::pow(tan(T(0.5) * phi0 + fourth_pi), en.C) * srat(en.e * sphi, en.ratexp)); in gauss_ini() 105 phi = T(2) * atan(en.K * math::pow(tan(T(0.5) * phi + fourth_pi), en.C) in gauss_fwd() 120 const T num = math::pow(tan(T(0.5) * phi + fourth_pi) / en.K, T(1) / en.C); in gauss_inv()
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_tan_op.py | 30 self.tan = P.Tan() 33 return self.tan(x) 45 expect = np.tan(np_array)
|
/third_party/flutter/engine/flutter/lib/ui/painting/ |
D | path_measure.cc | 82 SkVector tan; in getPosTan() local 83 bool success = measures_[contourIndex]->getPosTan(distance, &pos, &tan); in getPosTan() 89 posTan[3] = tan.x(); in getPosTan() 90 posTan[4] = tan.y(); in getPosTan()
|
/third_party/boost/libs/math/doc/equations/ |
D | ellint23.mml | 34 <mi>tan</mi> 49 <mi>tan</mi> 97 <mi>tan</mi> 117 <mi>tan</mi>
|
/third_party/glslang/Test/ |
D | spv.switch.frag | 59 f = tan(x); 69 f += tan(x); 96 f += tan(x); 114 f += tan(x);
|
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/tan/ |
D | 2f030e.wgsl.expected.glsl | 5 float res = tan(1.0f); 35 float res = tan(1.0f); 55 float res = tan(1.0f);
|
D | 8ce3e9.wgsl.expected.glsl | 5 vec2 res = tan(vec2(0.0f, 0.0f)); 35 vec2 res = tan(vec2(0.0f, 0.0f)); 55 vec2 res = tan(vec2(0.0f, 0.0f));
|
D | 244e2a.wgsl.expected.glsl | 5 vec4 res = tan(vec4(0.0f, 0.0f, 0.0f, 0.0f)); 35 vec4 res = tan(vec4(0.0f, 0.0f, 0.0f, 0.0f)); 55 vec4 res = tan(vec4(0.0f, 0.0f, 0.0f, 0.0f));
|