/third_party/boost/boost/math/special_functions/ |
D | jacobi_elliptic.hpp | 120 inline typename tools::promote_args<T, U, V>::type jacobi_elliptic(T k, U theta, V* pcn, V* pdn, co… in jacobi_elliptic() argument 135 …sn = detail::jacobi_imp<value_type>(static_cast<value_type>(theta), static_cast<value_type>(k), &c… in jacobi_elliptic() 144 inline typename tools::promote_args<T, U, V>::type jacobi_elliptic(T k, U theta, V* pcn, V* pdn) in jacobi_elliptic() argument 146 return jacobi_elliptic(k, theta, pcn, pdn, policies::policy<>()); in jacobi_elliptic() 150 inline typename tools::promote_args<T, U>::type jacobi_sn(U k, T theta, const Policy& pol) in jacobi_sn() argument 153 …return jacobi_elliptic(static_cast<result_type>(k), static_cast<result_type>(theta), static_cast<r… in jacobi_sn() 157 inline typename tools::promote_args<T, U>::type jacobi_sn(U k, T theta) in jacobi_sn() argument 159 return jacobi_sn(k, theta, policies::policy<>()); in jacobi_sn() 163 inline typename tools::promote_args<T, U>::type jacobi_cn(T k, U theta, const Policy& pol) in jacobi_cn() argument 167 …jacobi_elliptic(static_cast<result_type>(k), static_cast<result_type>(theta), &cn, static_cast<res… in jacobi_cn() [all …]
|
D | spherical_harmonic.hpp | 30 inline T spherical_harmonic_prefix(unsigned n, unsigned m, T theta, const Policy& pol) in spherical_harmonic_prefix() argument 37 T sin_theta = sin(theta); in spherical_harmonic_prefix() 38 T x = cos(theta); in spherical_harmonic_prefix() 51 T spherical_harmonic_r(unsigned n, int m, T theta, T phi, const Policy& pol) in spherical_harmonic_r() argument 65 T mod = boost::math::tools::fmod_workaround(theta, T(2 * constants::pi<T>())); in spherical_harmonic_r() 72 T prefix = spherical_harmonic_prefix(n, m, theta, pol); in spherical_harmonic_r() 78 T spherical_harmonic_i(unsigned n, int m, T theta, T phi, const Policy& pol) in spherical_harmonic_i() argument 92 T mod = boost::math::tools::fmod_workaround(theta, T(2 * constants::pi<T>())); in spherical_harmonic_i() 99 T prefix = spherical_harmonic_prefix(n, m, theta, pol); in spherical_harmonic_i() 105 std::complex<T> spherical_harmonic(unsigned n, int m, U theta, U phi, const Policy& pol) in spherical_harmonic() argument [all …]
|
/third_party/boost/boost/geometry/srs/projections/proj/ |
D | qsc.hpp | 137 T theta; in qsc_fwd_equat_face_theta() local 140 theta = 0.0; in qsc_fwd_equat_face_theta() 142 theta = atan2(y, x); in qsc_fwd_equat_face_theta() 143 if (fabs(theta) <= fourth_pi) { in qsc_fwd_equat_face_theta() 145 } else if (theta > fourth_pi && theta <= half_pi + fourth_pi) { in qsc_fwd_equat_face_theta() 147 theta -= half_pi; in qsc_fwd_equat_face_theta() 148 } else if (theta > half_pi + fourth_pi || theta <= -(half_pi + fourth_pi)) { in qsc_fwd_equat_face_theta() 150 theta = (theta >= 0.0 ? theta - pi : theta + pi); in qsc_fwd_equat_face_theta() 153 theta += half_pi; in qsc_fwd_equat_face_theta() 156 return theta; in qsc_fwd_equat_face_theta() [all …]
|
D | boggs.hpp | 76 T theta, th1, c; in fwd() local 79 theta = lp_lat; in fwd() 83 c = sin(theta) * pi; in fwd() 85 theta -= th1 = (theta + sin(theta) - c) / in fwd() 86 (1. + cos(theta)); in fwd() 89 theta *= 0.5; in fwd() 90 xy_x = FXC * lp_lon / (1. / cos(lp_lat) + FXC2 / cos(theta)); in fwd() 92 xy_y = FYC * (lp_lat + root_two * sin(theta)); in fwd()
|
D | oea.hpp | 63 T theta; member 83 …n(lp_lon), this->m_proj_parm.cp0 * sp - this->m_proj_parm.sp0 * cp * cl) + this->m_proj_parm.theta; in fwd() 101 cAz = cos(Az = aatan2(xp, yp) - this->m_proj_parm.theta); in inv() 125 … proj_parm.theta = pj_get_param_r<T, srs::spar::theta>(params, "theta", srs::dpar::theta); in setup_oea()
|
/third_party/ffmpeg/libavcodec/ |
D | aacps_tablegen.h | 78 double theta = 2 * M_PI * (q + 0.5) * (n - 6) / bands; in make_filters_from_proto() local 79 filter[q][n][0] = proto[n] * cos(theta); in make_filters_from_proto() 80 filter[q][n][1] = proto[n] * -sin(theta); in make_filters_from_proto() 180 double f_center, theta; in ps_tableinit() local 186 theta = -M_PI * fractional_delay_links[m] * f_center; in ps_tableinit() 187 Q_fract_allpass[0][k][m][0] = cos(theta); in ps_tableinit() 188 Q_fract_allpass[0][k][m][1] = sin(theta); in ps_tableinit() 190 theta = -M_PI*fractional_delay_gain*f_center; in ps_tableinit() 191 phi_fract[0][k][0] = cos(theta); in ps_tableinit() 192 phi_fract[0][k][1] = sin(theta); in ps_tableinit() [all …]
|
/third_party/skia/third_party/externals/freetype/src/base/ |
D | fttrigon.c | 164 FT_Angle theta ) in ft_trig_pseudo_rotate() argument 175 while ( theta < -FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 180 theta += FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 183 while ( theta > FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 188 theta -= FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 196 if ( theta < 0 ) in ft_trig_pseudo_rotate() 201 theta += *arctanptr++; in ft_trig_pseudo_rotate() 208 theta -= *arctanptr++; in ft_trig_pseudo_rotate() 220 FT_Angle theta; in ft_trig_pseudo_polarize() local 234 theta = FT_ANGLE_PI2; in ft_trig_pseudo_polarize() [all …]
|
/third_party/flutter/skia/third_party/externals/freetype/src/base/ |
D | fttrigon.c | 165 FT_Angle theta ) in ft_trig_pseudo_rotate() argument 176 while ( theta < -FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 181 theta += FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 184 while ( theta > FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 189 theta -= FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 197 if ( theta < 0 ) in ft_trig_pseudo_rotate() 202 theta += *arctanptr++; in ft_trig_pseudo_rotate() 209 theta -= *arctanptr++; in ft_trig_pseudo_rotate() 221 FT_Angle theta; in ft_trig_pseudo_polarize() local 235 theta = FT_ANGLE_PI2; in ft_trig_pseudo_polarize() [all …]
|
/third_party/freetype/src/base/ |
D | fttrigon.c | 164 FT_Angle theta ) in ft_trig_pseudo_rotate() argument 175 while ( theta < -FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 180 theta += FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 183 while ( theta > FT_ANGLE_PI4 ) in ft_trig_pseudo_rotate() 188 theta -= FT_ANGLE_PI2; in ft_trig_pseudo_rotate() 196 if ( theta < 0 ) in ft_trig_pseudo_rotate() 201 theta += *arctanptr++; in ft_trig_pseudo_rotate() 208 theta -= *arctanptr++; in ft_trig_pseudo_rotate() 220 FT_Angle theta; in ft_trig_pseudo_polarize() local 234 theta = FT_ANGLE_PI2; in ft_trig_pseudo_polarize() [all …]
|
/third_party/boost/libs/math/example/ |
D | catmull_rom_example.cpp | 27 double theta = ((double) i/ (double) spiral_points.size())*theta_max; in main() local 28 spiral_points[i] = {theta*cos(theta), theta*sin(theta)}; in main() 40 double theta = atan2(y/r, x/r); in main() local 41 … std::cout << "r = " << r << ", theta = " << theta << ", r - theta = " << r - theta << std::endl; in main()
|
/third_party/boost/libs/math/doc/sf/ |
D | spherical_harmonic.qbk | 12 std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi); 15 …std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const ``__Po… 18 ``__sf_result`` spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi); 21 ``__sf_result`` spherical_harmonic_r(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); 24 ``__sf_result`` spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi); 27 ``__sf_result`` spherical_harmonic_i(unsigned n, int m, T1 theta, T2 phi, const ``__Policy``&); 39 std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi); 42 …std::complex<``__sf_result``> spherical_harmonic(unsigned n, int m, T1 theta, T2 phi, const ``__Po… 44 Returns the value of the Spherical Harmonic Y[sub n][super m](theta, phi): 48 The spherical harmonics Y[sub n][super m](theta, phi) are the angular [all …]
|
/third_party/boost/libs/math/test/ |
D | test_autodiff_8.cpp | 64 auto theta = theta_sampler.next(); in BOOST_AUTO_TEST_CASE_TEMPLATE() local 66 boost::math::jacobi_cd(make_fvar<T, m>(k), make_fvar<T, m>(theta)) in BOOST_AUTO_TEST_CASE_TEMPLATE() 68 boost::math::jacobi_cd(k, theta))); in BOOST_AUTO_TEST_CASE_TEMPLATE() 70 boost::math::jacobi_cn(make_fvar<T, m>(k), make_fvar<T, m>(theta)) in BOOST_AUTO_TEST_CASE_TEMPLATE() 72 boost::math::jacobi_cn(k, theta))); in BOOST_AUTO_TEST_CASE_TEMPLATE() 74 boost::math::jacobi_cs(make_fvar<T, m>(k), make_fvar<T, m>(theta)) in BOOST_AUTO_TEST_CASE_TEMPLATE() 76 boost::math::jacobi_cs(k, theta))); in BOOST_AUTO_TEST_CASE_TEMPLATE() 78 boost::math::jacobi_dc(make_fvar<T, m>(k), make_fvar<T, m>(theta)) in BOOST_AUTO_TEST_CASE_TEMPLATE() 80 boost::math::jacobi_dc(k, theta))); in BOOST_AUTO_TEST_CASE_TEMPLATE() 82 boost::math::jacobi_dn(make_fvar<T, m>(k), make_fvar<T, m>(theta)) in BOOST_AUTO_TEST_CASE_TEMPLATE() [all …]
|
/third_party/pulseaudio/src/pulsecore/filter/ |
D | biquad.c | 51 double theta = M_PI * cutoff; in biquad_lowpass() local 52 double sn = 0.5 * M_SQRT2 * sin(theta); in biquad_lowpass() 54 double gamma_coeff = (0.5 + beta) * cos(theta); in biquad_lowpass() 83 double theta = M_PI * cutoff; in biquad_highpass() local 84 double sn = 0.5 * M_SQRT2 * sin(theta); in biquad_highpass() 86 double gamma_coeff = (0.5 + beta) * cos(theta); in biquad_highpass()
|
/third_party/gstreamer/gstplugins_bad/gst/geometrictransform/ |
D | gstkaleidoscope.c | 172 gdouble theta; in kaleidoscope_map() local 177 theta = atan2 (dy, dx) - kaleidoscope->angle - kaleidoscope->angle2; in kaleidoscope_map() 179 theta = gst_gm_triangle (theta / G_PI * kaleidoscope->sides * 0.5); in kaleidoscope_map() 182 gdouble radiusc = cgt->precalc_radius / cos (theta); in kaleidoscope_map() 186 theta += kaleidoscope->angle; in kaleidoscope_map() 188 *in_x = cgt->precalc_x_center + distance * cos (theta); in kaleidoscope_map() 189 *in_y = cgt->precalc_y_center + distance * sin (theta); in kaleidoscope_map()
|
D | gstcircle.c | 171 gdouble theta; in circle_map() local 176 theta = atan2 (-dy, -dx) + circle->angle; in circle_map() 178 theta = gst_gm_mod_float (theta, 2 * G_PI); in circle_map() 180 *in_x = gt->width * theta / (circle->spread_angle + 0.0001); in circle_map()
|
/third_party/boost/libs/math/doc/distributions/ |
D | gamma.qbk | 44 For shape parameter /k/ and scale parameter [theta] it is defined by the 50 [alpha] = k and [beta] = 1 / [theta], then the 112 [theta] is its scale parameter, /x/ is the random variate, /p/ is the probability 117 [[pdf][Using the relation: pdf = __gamma_p_derivative(k, x / [theta]) / [theta] ]] 118 [[cdf][Using the relation: p = __gamma_p(k, x / [theta]) ]] 119 [[cdf complement][Using the relation: q = __gamma_q(k, x / [theta]) ]] 120 [[quantile][Using the relation: x = [theta] * __gamma_p_inv(k, p) ]] 121 [[quantile from the complement][Using the relation: x = [theta]* __gamma_q_inv(k, p) ]] 122 [[mean][k[theta] ]] 123 [[variance][k[theta][super 2] ]] [all …]
|
/third_party/flutter/flutter/examples/layers/rendering/src/ |
D | sector_layout.dart | 77 double theta = 0.0; 84 /// direction ("theta"). 146 bool hitTest(SectorHitTestResult result, { double radius, double theta }) { 148 theta < parentData.theta || theta >= parentData.theta + deltaTheta) 150 hitTestChildren(result, radius: radius, theta: theta); 151 result.add(SectorHitTestEntry(this, radius: radius, theta: theta)); 154 void hitTestChildren(SectorHitTestResult result, { double radius, double theta }) { } 189 path.arcTo(outerBounds, parentData.theta, deltaTheta, true); 192 path.arcTo(innerBounds, parentData.theta + deltaTheta, -deltaTheta, false); 206 void hitTestChildren(SectorHitTestResult result, { double radius, double theta }) { [all …]
|
/third_party/boost/libs/math/test/test_instances/ |
D | test_instances.hpp | 166 … spherical_harmonic(unsigned n, int m, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_TYPE phi); 169 …spherical_harmonic(unsigned n, int m, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_TYPE phi, const … 172 … spherical_harmonic_r(unsigned n, int m, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_TYPE phi); 175 …spherical_harmonic_r(unsigned n, int m, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_TYPE phi, cons… 178 … spherical_harmonic_i(unsigned n, int m, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_TYPE phi); 181 …spherical_harmonic_i(unsigned n, int m, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_TYPE phi, cons… 439 …_TYPE>::type jacobi_elliptic(BOOST_MATH_TEST_TYPE k, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_T… 440 …_TYPE>::type jacobi_elliptic(BOOST_MATH_TEST_TYPE k, BOOST_MATH_TEST_TYPE theta, BOOST_MATH_TEST_T… 441 …H_TEST_TYPE>::type jacobi_sn(BOOST_MATH_TEST_TYPE k, BOOST_MATH_TEST_TYPE theta, const policies::p… 442 …ST_TYPE, BOOST_MATH_TEST_TYPE>::type jacobi_sn(BOOST_MATH_TEST_TYPE k, BOOST_MATH_TEST_TYPE theta); [all …]
|
/third_party/ffmpeg/libavfilter/ |
D | af_asupercut.c | 155 double alpha, beta, gamma, theta; in get_coeffs() local 173 theta = 2. * atan(tan(theta_0 / 2.) / W); in get_coeffs() 175 theta = 2. * atan(W * tan(theta_0 / 2.)); in get_coeffs() 177 beta = 0.5 * ((1. - (d / 2.) * sin(theta)) / (1. + (d / 2.) * sin(theta))); in get_coeffs() 178 gamma = (0.5 + beta) * cos(theta); in get_coeffs() 189 double alpha, beta, gamma, theta; in get_coeffs() local 207 theta = 2. * atan(tan(theta_0 / 2.) / W); in get_coeffs() 209 theta = 2. * atan(W * tan(theta_0 / 2.)); in get_coeffs() 211 beta = 0.5 * ((1. - (d / 2.) * sin(theta)) / (1. + (d / 2.) * sin(theta))); in get_coeffs() 212 gamma = (0.5 + beta) * cos(theta); in get_coeffs() [all …]
|
D | vf_v360.c | 1125 const float theta = asinf(vec[1]); in xyz_to_cube() local 1144 if (theta > theta_threshold) { in xyz_to_cube() 1146 } else if (theta < -theta_threshold) { in xyz_to_cube() 1746 const float theta = ((2.f * j + 0.5f) / height - 1.f) * M_PI_2; in equirect_to_xyz() local 1750 const float sin_theta = sinf(theta); in equirect_to_xyz() 1751 const float cos_theta = cosf(theta); in equirect_to_xyz() 1775 const float theta = ((2.f * j + 0.5f) / height - 1.f) * M_PI_2; in hequirect_to_xyz() local 1779 const float sin_theta = sinf(theta); in hequirect_to_xyz() 1780 const float cos_theta = cosf(theta); in hequirect_to_xyz() 1823 const float theta = atanf(r) * 2.f; in stereographic_to_xyz() local [all …]
|
/third_party/boost/boost/numeric/odeint/stepper/ |
D | runge_kutta_dopri5.hpp | 238 const value_type theta = ( t - t_old ) / dt; in calc_state() local 239 …t< value_type >( 2558722523LL ) - static_cast< value_type >( 31403016 ) * theta ) / static_cast< v… in calc_state() 240 …cast< value_type >( 882725551 ) - static_cast< value_type >( 15701508 ) * theta ) / static_cast< v… in calc_state() 241 …cast< value_type >( 443332067 ) - static_cast< value_type >( 31403016 ) * theta ) / static_cast< v… in calc_state() 242 …c_cast< value_type >( 23143187 ) - static_cast< value_type >( 3489224 ) * theta ) / static_cast< v… in calc_state() 243 …c_cast< value_type >( 29972135 ) - static_cast< value_type >( 7076736 ) * theta ) / static_cast< v… in calc_state() 244 …tic_cast< value_type >( 7414447 ) - static_cast< value_type >( 829305 ) * theta ) / static_cast< v… in calc_state() 246 const value_type theta_m_1 = theta - static_cast< value_type >( 1 ); in calc_state() 247 const value_type theta_sq = theta * theta; in calc_state() 248 …ue_type A = theta_sq * ( static_cast< value_type >( 3 ) - static_cast< value_type >( 2 ) * theta ); in calc_state() [all …]
|
/third_party/skia/docs/examples/ |
D | skcanvas_star.cpp | 12 SkScalar theta = 3 * i * TAU / 7; in draw() local 13 path.lineTo(R * cos(theta), R * sin(theta)); in draw()
|
/third_party/boost/libs/math/tools/ |
D | spherical_harmonic_data.cpp | 38 T theta = truncate_to_float(&_theta); in spherical_harmonic_data() local 41 T r1 = spherical_harmonic_r(n, m, theta, phi); in spherical_harmonic_data() 42 T r2 = spherical_harmonic_i(n, m, theta, phi); in spherical_harmonic_data() 43 return boost::math::make_tuple(n, m, theta, phi, r1, r2); in spherical_harmonic_data()
|
/third_party/skia/gm/ |
D | sharedcorners.cpp | 99 SkScalar theta = 0; in onDraw() local 101 while (theta < 2*SK_ScalarPI) { in onDraw() 102 pts.push_back({SkScalarCos(theta), SkScalarSin(theta)}); in onDraw() 106 theta += rand.nextRangeF(0, SK_ScalarPI/3); in onDraw()
|
/third_party/flutter/skia/gm/ |
D | sharedcorners.cpp | 99 SkScalar theta = 0; in onDraw() local 101 while (theta < 2*SK_ScalarPI) { in onDraw() 102 pts.push_back({SkScalarCos(theta), SkScalarSin(theta)}); in onDraw() 106 theta += rand.nextRangeF(0, SK_ScalarPI/3); in onDraw()
|