/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
H A D | ComplexUtils.java | 42 * The value returned is <code>r·e<sup>i·theta</sup></code>, 43 * computed as <code>r·cos(theta) + r·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·e<sup>i·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 D | zipf.h | 9 double theta; member in struct:zipf_state 17 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
|
H A D | zipf.c | 29 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); 42 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, argument 47 zs->theta = theta; 48 zs->zeta2 = pow(1.0, zs->theta) + pow(0.5, zs->theta); 59 alpha = 1.0 / (1.0 - zs->theta); 60 eta = (1.0 - pow(2.0 / n, 1.0 - zs->theta)) / (1.0 - zs->zeta2 / zs->zetan); 67 else if (rand_z < (1.0 + pow(0.5, zs->theta)))
|
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
H A D | polar.pass.cpp | 14 // polar(const T& rho, const T& theta = 0); 30 test(const T& rho, const T& theta, std::complex<T> x) argument 32 assert(std::polar(rho, theta) == x); 53 double theta = imag(x[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 D | ClassicalRungeKuttaStepInterpolator.java | 32 * 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 D | EulerStepInterpolator.java | 31 * 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 D | GillStepInterpolator.java | 33 * 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 D | HighamHall54StepInterpolator.java | 72 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 D | MidpointStepInterpolator.java | 32 * 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 D | ThreeEighthesStepInterpolator.java | 32 * 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 D | DormandPrince54StepInterpolator.java | 167 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 D | GraggBulirschStoerStepInterpolator.java | 311 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/opencv3/samples/python2/ |
H A D | houghlines.py | 32 theta = lines[i][0][1] variable 33 a = math.cos(theta) 34 b = math.sin(theta)
|
/external/valgrind/none/tests/amd64/ |
H A D | bug132918.c | 44 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/mesa3d/src/gallium/state_trackers/vega/ |
H A D | arc.h | 44 VGfloat theta; member in struct:arc
|
/external/opencv3/modules/imgproc/perf/ |
H A D | perf_filter2d.cpp | 61 double theta = 47; local 63 Mat gaborKernel = getGaborKernel(Size(kernelSize, kernelSize), sigma, theta, lambda, gamma);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/ |
H A D | DummyStepInterpolator.java | 95 * @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 D | NordsieckStepInterpolator.java | 187 protected void computeInterpolatedStateAndDerivatives(final double theta, final double oneMinusThetaH) { argument
|
/external/opencv/cv/src/ |
H A D | _cvlist.h | 367 float rho, theta; member in struct:__index
|
/external/opencv3/modules/imgproc/src/ |
H A D | gabor.cpp | 51 cv::Mat cv::getGaborKernel( Size ksize, double sigma, double theta, argument 58 double c = cos(theta), s = sin(theta);
|
/external/ceres-solver/examples/ |
H A D | more_garbow_hillstrom.cc | 180 const T theta = T(0.5 / M_PI) * atan(x2 / x1) + (x1 > 0.0 ? T(0.0) : T(0.5)); member in namespace:ceres::examples 182 residual[0] = T(10.0) * (x3 - T(10.0) * theta);
|
/external/eigen/bench/ |
H A D | eig33.cpp | 77 Scalar theta = std::atan2(internal::sqrt(-q),half_b)*s_inv3; local 78 Scalar cos_theta = internal::cos(theta); 79 Scalar sin_theta = internal::sin(theta);
|
H A D | quat_slerp.cpp | 32 // 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 D | geo_quaternion.cpp | 38 Scalar theta = AA(q*q0.inverse()).angle(); local 41 else VERIFY(abs(theta - t * theta_tot) < largeEps);
|
/external/freetype/src/base/ |
H A D | fttrigon.c | 164 FT_Angle theta ) 175 while ( theta < -FT_ANGLE_PI4 ) 180 theta += FT_ANGLE_PI2; 183 while ( theta > FT_ANGLE_PI4 ) 188 theta -= FT_ANGLE_PI2; 196 if ( theta < 0 ) 201 theta += *arctanptr++; 208 theta -= *arctanptr++; 220 FT_Angle theta; local 234 theta [all...] |