Searched defs:theta (Results 1 - 25 of 68) sorted by relevance

123

/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
H A DComplexUtils.java42 * The value returned is <code>r&middot;e<sup>i&middot;theta</sup></code>,
43 * computed as <code>r&middot;cos(theta) + r&middot;sin(theta)i</code></p>
45 * If either <code>r</code> or <code>theta</code> is NaN, or
46 * <code>theta</code> is infinite, {@link Complex#NaN} is returned.</p>
48 * If <code>r</code> is infinite and <code>theta</code> is finite,
59 * @param theta the argument of the complex number to create
60 * @return <code>r&middot;e<sup>i&middot;theta</sup></code>
64 public static Complex polar2Complex(double r, double theta) { argument
69 return new Complex(r * FastMath.cos(theta),
[all...]
/external/fio/lib/
H A Dzipf.h9 double theta; member in struct:zipf_state
18 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
H A Dzipf.c28 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta);
41 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, argument
46 zs->theta = theta;
47 zs->zeta2 = pow(1.0, zs->theta) + pow(0.5, zs->theta);
58 alpha = 1.0 / (1.0 - zs->theta);
59 eta = (1.0 - pow(2.0 / n, 1.0 - zs->theta)) / (1.0 - zs->zeta2 / zs->zetan);
66 else if (rand_z < (1.0 + pow(0.5, zs->theta)))
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/
H A Dpolar.pass.cpp14 // polar(const T& rho, const T& theta = T()); // changed from '0' by LWG#2870
30 test(const T& rho, const T& theta, std::complex<T> x) argument
32 assert(std::polar(rho, theta) == x);
53 double theta = imag(testcases[i]); local
54 std::complex<double> z = std::polar(r, theta);
58 if (std::signbit(r) || classify(theta) == inf || classify(theta) == NaN)
69 if (std::signbit(r) || classify(theta) == inf || classify(theta) == NaN)
88 if (classify(theta) !
[all...]
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/
H A DClassicalRungeKuttaStepInterpolator.java32 * y(t_n + theta h) = y (t_n + h)
33 * + (1 - theta) (h/6) [ (-4 theta^2 + 5 theta - 1) y'_1
34 * +(4 theta^2 - 2 theta - 2) (y'_2 + y'_3)
35 * -(4 theta^2 + theta + 1) y'_4
39 * where theta belongs to [0 ; 1] and where y'_1 to y'_4 are the four
84 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
[all...]
H A DEulerStepInterpolator.java31 * y(t_n + theta h) = y (t_n + h) - (1-theta) h y'
34 * where theta belongs to [0 ; 1] and where y' is the evaluation of
80 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
H A DGillStepInterpolator.java33 * y(t_n + theta h) = y (t_n + h)
34 * - (1 - theta) (h/6) [ (1 - theta) (1 - 4 theta) y'_1
35 * + (1 - theta) (1 + 2 theta) ((2-q) y'_2 + (2+q) y'_3)
36 * + (1 + theta + 4 theta^2) y'_4
39 * where theta belongs to [0 ; 1], q = sqrt(2) and where y'_1 to y'_4
92 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
[all...]
H A DHighamHall54StepInterpolator.java72 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
76 final double theta2 = theta * theta;
78 final double b0 = h * (-1.0/12.0 + theta * (1.0 + theta * (-15.0/4.0 + theta * (16.0/3.0 + theta * -5.0/2.0))));
79 final double b2 = h * (-27.0/32.0 + theta2 * (459.0/32.0 + theta * (-243.0/8.0 + theta * 135.0/8.0)));
80 final double b3 = h * (4.0/3.0 + theta2 * (-22.0 + theta * (152.
[all...]
H A DMidpointStepInterpolator.java32 * y(t_n + theta h) = y (t_n + h) + (1-theta) h [theta y'_1 - (1+theta) y'_2]
35 * where theta belongs to [0 ; 1] and where y'_1 and y'_2 are the two
82 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
86 final double coeff1 = oneMinusThetaH * theta;
87 final double coeff2 = oneMinusThetaH * (1.0 + theta);
88 final double coeffDot2 = 2 * theta;
H A DThreeEighthesStepInterpolator.java32 * y(t_n + theta h) = y (t_n + h)
33 * - (1 - theta) (h/8) [ (1 - 7 theta + 8 theta^2) y'_1
34 * + 3 (1 + theta - 4 theta^2) y'_2
35 * + 3 (1 + theta) y'_3
36 * + (1 + theta + 4 theta^2) y'_4
40 * where theta belong
87 computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) argument
[all...]
H A DDormandPrince54StepInterpolator.java167 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
201 final double eta = 1 - theta;
202 final double twoTheta = 2 * theta;
204 final double dot3 = theta * (2 - 3 * theta);
205 final double dot4 = twoTheta * (1 + theta * (twoTheta - 3));
208 currentState[i] - oneMinusThetaH * (v1[i] - theta * (v2[i] + theta * (v3[i] + eta * v4[i])));
H A DGraggBulirschStoerStepInterpolator.java311 protected void computeInterpolatedStateAndDerivatives(final double theta, argument
316 final double oneMinusTheta = 1.0 - theta;
317 final double theta05 = theta - 0.5;
318 final double tOmT = theta * oneMinusTheta;
320 final double t4Dot = 2 * tOmT * (1 - 2 * theta);
322 final double dot2 = theta * (2 - 3 * theta) / h;
323 final double dot3 = ((3 * theta - 4) * theta + 1) / h;
331 interpolatedState[i] = p0 + theta * (p
[all...]
/external/valgrind/none/tests/amd64/
H A Dbug132918.c44 double theta; local
50 theta = (2.0 * 3.14159) / 10.0 * (double)i;
51 do_fprem(&r, 12.3*sin(theta), cos(theta)); show("xx", &r);
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/
H A DDummyStepInterpolator.java95 * @param theta normalized interpolation abscissa within the step
96 * (theta is zero at the previous time step and one at the current time step)
101 protected void computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) { argument
H A DNordsieckStepInterpolator.java187 protected void computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) { argument
H A DAbstractStepInterpolator.java327 * @param theta normalized interpolation abscissa within the step
328 * (theta is zero at the previous time step and one at the current time step)
334 protected abstract void computeInterpolatedStateAndDerivatives(double theta, argument
344 final double theta = (h == 0) ? 0 : (h - oneMinusThetaH) / h;
345 computeInterpolatedStateAndDerivatives(theta, oneMinusThetaH);
359 final double theta = (h == 0) ? 0 : (h - oneMinusThetaH) / h;
360 computeInterpolatedStateAndDerivatives(theta, oneMinusThetaH);
/external/opencv/cv/src/
H A D_cvlist.h367 float rho, theta; member in struct:__index
/external/eigen/bench/
H A Deig33.cpp77 Scalar theta = std::atan2(std::sqrt(-q),half_b)*s_inv3; local
78 Scalar cos_theta = std::cos(theta);
79 Scalar sin_theta = std::sin(theta);
H A Dquat_slerp.cpp32 // theta is the angle between the 2 quaternions
33 Scalar theta = std::acos(absD);
34 Scalar sinTheta = internal::sin(theta);
36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta;
37 Scalar scale1 = internal::sin( ( t * theta) ) / sinTheta;
62 // theta is the angle between the 2 quaternions
63 Scalar theta = std::acos(absD); local
64 Scalar sinTheta = internal::sin(theta);
66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta;
67 scale1 = internal::sin( ( t * theta) ) / sinThet
90 Scalar theta; local
114 Scalar theta; local
[all...]
/external/eigen/test/
H A Dgeo_quaternion.cpp38 Scalar theta = AA(q*q0.inverse()).angle(); local
41 else VERIFY(abs(theta - t * theta_tot) < largeEps);
/external/freetype/src/base/
H A Dfttrigon.c165 FT_Angle theta )
176 while ( theta < -FT_ANGLE_PI4 )
181 theta += FT_ANGLE_PI2;
184 while ( theta > FT_ANGLE_PI4 )
189 theta -= FT_ANGLE_PI2;
197 if ( theta < 0 )
202 theta += *arctanptr++;
209 theta -= *arctanptr++;
221 FT_Angle theta; local
235 theta
[all...]
/external/skia/samplecode/
H A DSamplePathOverstroke.cpp107 float theta = i * PI / (LIN_SEGMENTS); local
108 SkScalar x = 65 + 15 * cos(theta);
109 SkScalar y = 50 - 15 * sin(theta);
/external/skqp/samplecode/
H A DSamplePathOverstroke.cpp107 float theta = i * PI / (LIN_SEGMENTS); local
108 SkScalar x = 65 + 15 * cos(theta);
109 SkScalar y = 50 - 15 * sin(theta);
/external/swiftshader/tests/OGLSimpleCube/
H A DOGLSimpleCube.cpp44 double theta = angle * PI / 180.0; variable
48 GLfloat R[16] = { 1, 0, 0, 0, 0, cos(theta), -sin(theta), 0, 0, sin(theta), cos(theta), 0, 0, 0, 0, 1 };
/external/adhd/cras/src/dsp/
H A Dbiquad.c55 double theta = M_PI * cutoff; local
56 double sn = 0.5 * d * sin(theta);
58 double gamma = (0.5 + beta) * cos(theta);
90 double theta = M_PI * cutoff; local
91 double sn = 0.5 * d * sin(theta);
93 double gamma = (0.5 + beta) * cos(theta);

Completed in 8645 milliseconds

123