Home
last modified time | relevance | path

Searched refs:theta (Results 1 – 25 of 92) sorted by relevance

1234

/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/
DHighamHall54StepInterpolator.java72 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
76 final double theta2 = theta * theta; in computeInterpolatedStateAndDerivatives()
78 …final double b0 = h * (-1.0/12.0 + theta * (1.0 + theta * (-15.0/4.0 + theta * (16.0/3.0 + theta *… in computeInterpolatedStateAndDerivatives()
79 …final double b2 = h * (-27.0/32.0 + theta2 * (459.0/32.0 + theta * (-243.0/8.0 + theta * 135.0/8.0… in computeInterpolatedStateAndDerivatives()
80 final double b3 = h * (4.0/3.0 + theta2 * (-22.0 + theta * (152.0/3.0 + theta * -30.0))); in computeInterpolatedStateAndDerivatives()
81 …final double b4 = h * (-125.0/96.0 + theta2 * (375.0/32.0 + theta * (-625.0/24.0 + theta * 125.0/8… in computeInterpolatedStateAndDerivatives()
82 final double b5 = h * (-5.0/48.0 + theta2 * (-5.0/16.0 + theta * 5.0/12.0)); in computeInterpolatedStateAndDerivatives()
83 final double bDot0 = 1 + theta * (-15.0/2.0 + theta * (16.0 - 10.0 * theta)); in computeInterpolatedStateAndDerivatives()
84 final double bDot2 = theta * (459.0/16.0 + theta * (-729.0/8.0 + 135.0/2.0 * theta)); in computeInterpolatedStateAndDerivatives()
85 final double bDot3 = theta * (-44.0 + theta * (152.0 - 120.0 * theta)); in computeInterpolatedStateAndDerivatives()
[all …]
DThreeEighthesStepInterpolator.java87 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
91 final double fourTheta2 = 4 * theta * theta; in computeInterpolatedStateAndDerivatives()
93 final double coeff1 = s * (1 - 7 * theta + 2 * fourTheta2); in computeInterpolatedStateAndDerivatives()
94 final double coeff2 = 3 * s * (1 + theta - fourTheta2); in computeInterpolatedStateAndDerivatives()
95 final double coeff3 = 3 * s * (1 + theta); in computeInterpolatedStateAndDerivatives()
96 final double coeff4 = s * (1 + theta + fourTheta2); in computeInterpolatedStateAndDerivatives()
97 final double coeffDot3 = 0.75 * theta; in computeInterpolatedStateAndDerivatives()
98 final double coeffDot1 = coeffDot3 * (4 * theta - 5) + 1; in computeInterpolatedStateAndDerivatives()
99 final double coeffDot2 = coeffDot3 * (5 - 6 * theta); in computeInterpolatedStateAndDerivatives()
100 final double coeffDot4 = coeffDot3 * (2 * theta - 1); in computeInterpolatedStateAndDerivatives()
DClassicalRungeKuttaStepInterpolator.java84 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
88 final double fourTheta = 4 * theta; in computeInterpolatedStateAndDerivatives()
89 final double oneMinusTheta = 1 - theta; in computeInterpolatedStateAndDerivatives()
90 final double oneMinus2Theta = 1 - 2 * theta; in computeInterpolatedStateAndDerivatives()
92 final double coeff1 = s * ((-fourTheta + 5) * theta - 1); in computeInterpolatedStateAndDerivatives()
93 final double coeff23 = s * (( fourTheta - 2) * theta - 2); in computeInterpolatedStateAndDerivatives()
94 final double coeff4 = s * ((-fourTheta - 1) * theta - 1); in computeInterpolatedStateAndDerivatives()
96 final double coeffDot23 = 2 * theta * oneMinusTheta; in computeInterpolatedStateAndDerivatives()
97 final double coeffDot4 = -theta * oneMinus2Theta; in computeInterpolatedStateAndDerivatives()
DDormandPrince853StepInterpolator.java313 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
360 final double eta = 1 - theta; in computeInterpolatedStateAndDerivatives()
361 final double twoTheta = 2 * theta; in computeInterpolatedStateAndDerivatives()
362 final double theta2 = theta * theta; in computeInterpolatedStateAndDerivatives()
364 final double dot2 = theta * (2 - 3 * theta); in computeInterpolatedStateAndDerivatives()
365 final double dot3 = twoTheta * (1 + theta * (twoTheta -3)); in computeInterpolatedStateAndDerivatives()
366 final double dot4 = theta2 * (3 + theta * (5 * theta - 8)); in computeInterpolatedStateAndDerivatives()
367 final double dot5 = theta2 * (3 + theta * (-12 + theta * (15 - 6 * theta))); in computeInterpolatedStateAndDerivatives()
368 final double dot6 = theta2 * theta * (4 + theta * (-15 + theta * (18 - 7 * theta))); in computeInterpolatedStateAndDerivatives()
373 theta * (v[1][i] + in computeInterpolatedStateAndDerivatives()
[all …]
DGillStepInterpolator.java92 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
96 final double twoTheta = 2 * theta; in computeInterpolatedStateAndDerivatives()
97 final double fourTheta = 4 * theta; in computeInterpolatedStateAndDerivatives()
99 final double oMt = 1 - theta; in computeInterpolatedStateAndDerivatives()
105 final double coeff4 = s * (1 + theta * (1 + fourTheta)); in computeInterpolatedStateAndDerivatives()
106 final double coeffDot1 = theta * (twoTheta - 3) + 1; in computeInterpolatedStateAndDerivatives()
107 final double cDot23 = theta * oMt; in computeInterpolatedStateAndDerivatives()
110 final double coeffDot4 = theta * (twoTheta - 1); in computeInterpolatedStateAndDerivatives()
DDormandPrince54StepInterpolator.java167 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
201 final double eta = 1 - theta; in computeInterpolatedStateAndDerivatives()
202 final double twoTheta = 2 * theta; in computeInterpolatedStateAndDerivatives()
204 final double dot3 = theta * (2 - 3 * theta); in computeInterpolatedStateAndDerivatives()
205 final double dot4 = twoTheta * (1 + theta * (twoTheta - 3)); in computeInterpolatedStateAndDerivatives()
208 … currentState[i] - oneMinusThetaH * (v1[i] - theta * (v2[i] + theta * (v3[i] + eta * v4[i]))); in computeInterpolatedStateAndDerivatives()
DGraggBulirschStoerStepInterpolator.java311 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
316 final double oneMinusTheta = 1.0 - theta; in computeInterpolatedStateAndDerivatives()
317 final double theta05 = theta - 0.5; in computeInterpolatedStateAndDerivatives()
318 final double tOmT = theta * oneMinusTheta; in computeInterpolatedStateAndDerivatives()
320 final double t4Dot = 2 * tOmT * (1 - 2 * theta); in computeInterpolatedStateAndDerivatives()
322 final double dot2 = theta * (2 - 3 * theta) / h; in computeInterpolatedStateAndDerivatives()
323 final double dot3 = ((3 * theta - 4) * theta + 1) / h; in computeInterpolatedStateAndDerivatives()
331 … interpolatedState[i] = p0 + theta * (p1 + oneMinusTheta * (p2 * theta + p3 * oneMinusTheta)); in computeInterpolatedStateAndDerivatives()
DMidpointStepInterpolator.java82 protected void computeInterpolatedStateAndDerivatives(final double theta, in computeInterpolatedStateAndDerivatives() argument
86 final double coeff1 = oneMinusThetaH * theta; in computeInterpolatedStateAndDerivatives()
87 final double coeff2 = oneMinusThetaH * (1.0 + theta); in computeInterpolatedStateAndDerivatives()
88 final double coeffDot2 = 2 * theta; in computeInterpolatedStateAndDerivatives()
/external/ceres-solver/internal/ceres/
Drotation_test.cc210 double theta = 1.0e-2; in TEST() local
211 double axis_angle[3] = { theta, 0, 0 }; in TEST()
213 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; in TEST()
222 double theta = pow(numeric_limits<double>::min(), 0.75); in TEST() local
223 double axis_angle[3] = { theta, 0, 0 }; in TEST()
225 double expected[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; in TEST()
272 double theta = 1.0e-2; in TEST() local
273 double quaternion[4] = { cos(theta/2), sin(theta/2.0), 0, 0 }; in TEST()
275 double expected[3] = { theta, 0, 0 }; in TEST()
283 double theta = pow(numeric_limits<double>::min(), 0.75); in TEST() local
[all …]
/external/eigen/bench/
Dquat_slerp.cpp33 Scalar theta = std::acos(absD); in slerp_legacy() local
34 Scalar sinTheta = internal::sin(theta); in slerp_legacy()
36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy()
37 Scalar scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_legacy()
63 Scalar theta = std::acos(absD); in slerp_legacy_nlerp() local
64 Scalar sinTheta = internal::sin(theta); in slerp_legacy_nlerp()
66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy_nlerp()
67 scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_legacy_nlerp()
90 Scalar theta; in slerp_rw() local
92 theta = /*M_PI -*/ Scalar(2)*std::asin( (a.coeffs()+b.coeffs()).norm()/2 ); in slerp_rw()
[all …]
/external/pdfium/third_party/lcms2-2.6/src/
Dcmssm.c46 cmsFloat64Number theta; member
131 sp ->alpha = sp ->theta = 0; in ToSpherical()
136 sp ->theta = _cmsAtan2(sqrt(a*a + b*b), L); in ToSpherical()
152 sin_theta = sin((M_PI * sp ->theta) / 180.0); in ToCartesian()
153 cos_theta = cos((M_PI * sp ->theta) / 180.0); in ToCartesian()
168 void QuantizeToSector(const cmsSpherical* sp, int* alpha, int* theta) in QuantizeToSector() argument
171 *theta = (int) floor(((sp->theta * (SECTORS)) / 180.0) ); in QuantizeToSector()
175 if (*theta >= SECTORS) in QuantizeToSector()
176 *theta = SECTORS-1; in QuantizeToSector()
325 int alpha, theta; in GetPoint() local
[all …]
/external/pdfium/third_party/freetype/src/base/
Dfttrigon.c164 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 …]
/external/freetype/src/base/
Dfttrigon.c165 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 …]
/external/libgdx/extensions/gdx-freetype/jni/freetype-2.6.2/src/base/
Dfttrigon.c164 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 …]
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/
Dpolar.pass.cpp30 test(const T& rho, const T& theta, std::complex<T> x) in test() argument
32 assert(std::polar(rho, theta) == x); in test()
53 double theta = imag(x[i]); in test_edges() local
54 std::complex<double> z = std::polar(r, theta); in test_edges()
58 if (std::signbit(r) || classify(theta) == inf || classify(theta) == NaN) in test_edges()
69 if (std::signbit(r) || classify(theta) == inf || classify(theta) == NaN) in test_edges()
88 if (classify(theta) != NaN && classify(theta) != inf) in test_edges()
/external/fio/lib/
Dzipf.c29 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); in zipf_update()
42 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, in zipf_init() argument
47 zs->theta = theta; in zipf_init()
48 zs->zeta2 = pow(1.0, zs->theta) + pow(0.5, zs->theta); in zipf_init()
59 alpha = 1.0 / (1.0 - zs->theta); in zipf_next()
60 eta = (1.0 - pow(2.0 / n, 1.0 - zs->theta)) / (1.0 - zs->zeta2 / zs->zetan); in zipf_next()
67 else if (rand_z < (1.0 + pow(0.5, zs->theta))) in zipf_next()
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
DPQTorus.java150 float r, x, y, z, theta = 0.0f, beta = 0.0f; in updateGeometry() local
155 theta += thetaStep; in updateGeometry()
159 r = (0.5f * (2.0f + FastMath.sin(q * theta)) * radius); in updateGeometry()
160 x = (r * FastMath.cos(p * theta) * radius); in updateGeometry()
161 y = (r * FastMath.sin(p * theta) * radius); in updateGeometry()
162 z = (r * FastMath.cos(q * theta) * radius); in updateGeometry()
166 r = (0.5f * (2.0f + FastMath.sin(q * (theta + 0.01f))) * radius); in updateGeometry()
167 x = (r * FastMath.cos(p * (theta + 0.01f)) * radius); in updateGeometry()
168 y = (r * FastMath.sin(p * (theta + 0.01f)) * radius); in updateGeometry()
169 z = (r * FastMath.cos(q * (theta + 0.01f)) * radius); in updateGeometry()
/external/valgrind/none/tests/amd64/
Dbug132918.c44 double theta; in main() local
50 theta = (2.0 * 3.14159) / 10.0 * (double)i; in main()
51 do_fprem(&r, 12.3*sin(theta), cos(theta)); show("xx", &r); in main()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/
DMathUtils.java296 public static final float reduceAngle(float theta) { in reduceAngle() argument
297 theta %= TWOPI; in reduceAngle()
298 if (abs(theta) > PI) { in reduceAngle()
299 theta = theta - TWOPI; in reduceAngle()
301 if (abs(theta) > HALF_PI) { in reduceAngle()
302 theta = PI - theta; in reduceAngle()
304 return theta; in reduceAngle()
/external/ceres-solver/include/ceres/
Drotation.h231 const T theta = sqrt(theta_squared); in AngleAxisToQuaternion() local
232 const T half_theta = theta * T(0.5); in AngleAxisToQuaternion()
233 const T k = sin(half_theta) / theta; in AngleAxisToQuaternion()
333 const T theta = atan2(sintheta, costheta); in RotationMatrixToAngleAxis() local
346 const T r = theta / (kTwo * sintheta); in RotationMatrixToAngleAxis()
379 angle_axis[i] = theta * sqrt((R(i, i) - costheta) * inv_one_minus_costheta); in RotationMatrixToAngleAxis()
402 const T theta = sqrt(theta2); in AngleAxisToRotationMatrix() local
403 const T wx = angle_axis[0] / theta; in AngleAxisToRotationMatrix()
404 const T wy = angle_axis[1] / theta; in AngleAxisToRotationMatrix()
405 const T wz = angle_axis[2] / theta; in AngleAxisToRotationMatrix()
[all …]
/external/llvm/test/CodeGen/X86/
D2011-02-23-UnfoldBug.ll10 %theta.0.ph = phi <2 x double> [ undef, %entry ], [ %theta.1, %if.end71 ]
11 %mul.i97 = fmul <2 x double> %theta.0.ph, undef
33 %theta.1 = phi <2 x double> [ %vecins.i91, %if.then67 ], [ %theta.0.ph, %for.end ]
Dlegalize-libcalls.ll6 define float @MakeSphere(float %theta.079) nounwind {
8 %add36 = fadd float %theta.079, undef
9 %call = call float @cosf(float %theta.079) nounwind readnone
10 %call45 = call float @sinf(float %theta.079) nounwind readnone
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplexUtils.java64 public static Complex polar2Complex(double r, double theta) { in polar2Complex() argument
69 return new Complex(r * FastMath.cos(theta), r * FastMath.sin(theta)); in polar2Complex()
/external/opencv/cv/src/
Dcvhough.cpp85 icvHoughLinesStandard( const CvMat* img, float rho, float theta, in CV_IMPLEMENT_QSORT_EX()
114 numangle = cvRound(CV_PI / theta); in CV_IMPLEMENT_QSORT_EX()
123 for( ang = 0, n = 0; n < numangle; ang += theta, n++ ) in CV_IMPLEMENT_QSORT_EX()
166 line.angle = n * theta; in CV_IMPLEMENT_QSORT_EX()
192 float rho, float theta, int threshold, in IMPLEMENT_LIST()
238 CV_ASSERT( linesMax > 0 && rho > 0 && theta > 0 ); in IMPLEMENT_LIST()
248 itheta = 1 / theta; in IMPLEMENT_LIST()
250 stheta = theta / stn; in IMPLEMENT_LIST()
313 theta_it = theta_it < theta ? theta_it : theta; in IMPLEMENT_LIST()
348 icvHoughLinesStandard( img, rho, theta, threshold, lines, linesMax ); in IMPLEMENT_LIST()
[all …]
Dcvcamshift.cpp175 double theta = 0, square; in cvCamShift() local
235 theta = atan2( 2 * b, a - c + square ); in cvCamShift()
238 cs = cos( theta ); in cvCamShift()
239 sn = sin( theta ); in cvCamShift()
253 theta = CV_PI*0.5 - theta; in cvCamShift()
292 box->angle = (float)(theta*180./CV_PI); in cvCamShift()

1234