/external/tensorflow/tensorflow/core/api_def/base_api/ |
api_def_Atan2.pbtxt | 5 This is the angle \( \theta \in [-\pi, \pi] \) such that 6 \[ x = r \cos(\theta) \] 8 \[ y = r \sin(\theta) \]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
HighamHall54StepInterpolator.java | 72 protected void computeInterpolatedStateAndDerivatives(final double theta, 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.0/3.0 + theta * -30.0))) [all...] |
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, [all...] |
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 belongs to [0 ; 1] and where y'_1 to y'_4 are the fou [all...] |
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, [all...] |
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, 86 final double coeff1 = oneMinusThetaH * theta; 87 final double coeff2 = oneMinusThetaH * (1.0 + theta); 88 final double coeffDot2 = 2 * theta;
|
/external/fio/lib/ |
zipf.h | 9 double theta; member in struct:zipf_state 18 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, unsigned int seed);
|
zipf.c | 28 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); 41 void zipf_init(struct zipf_state *zs, unsigned long nranges, double theta, 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/ImageMagick/PerlMagick/demo/ |
Turtle.pm | 11 @{$self}{qw(x y theta mirror)} = @_; 19 my ($newx, $newy)=($self->{x}+$r* sin($self->{theta}), 20 $self->{y}+$r*-cos($self->{theta})); 33 $self->{theta} += $dtheta*$self->{mirror}; 40 @{$self}{qw(x y theta mirror)}; 47 @{$self}{qw(x y theta mirror)} = @_;
|
/external/eigen/bench/ |
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) ) / sinTheta 90 Scalar theta; local 114 Scalar theta; local [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
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) { 69 return new Complex(r * FastMath.cos(theta), r * FastMath.sin(theta)) [all...] |
/external/libcxx/test/std/numerics/complex.number/complex.value.ops/ |
polar.pass.cpp | 14 // 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) 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) != NaN && classify(theta) != inf [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/numerics/complex.number/complex.value.ops/ |
polar.pass.cpp | 14 // polar(const T& rho, const T& theta = 0); 30 test(const T& rho, const T& theta, std::complex<T> x) 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) != NaN && classify(theta) != inf [all...] |
/external/valgrind/none/tests/amd64/ |
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);
|
/hardware/interfaces/tests/pointer/1.0/ |
IGraph.hal | 33 struct Theta { 37 ref<Theta> s_ptr; 40 ref<Theta> s_ptr; 53 passASimpleRefS(ref<Theta> s);
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/ |
synthetic.py | 171 def _archimedes_spiral(theta, theta_offset=0., *args, **kwargs): 175 theta: array-like, angles from polar coordinates to be converted 178 x, y = theta * np.cos(theta + theta_offset), theta * np.sin( 179 theta + theta_offset) 186 def _bernoulli_spiral(theta, theta_offset=0., *args, **kwargs): 190 theta: array-like, angles from polar coordinates to be converted 198 x, y = np.exp(exp_scale * theta) * np.cos(theta + theta_offset), np.exp [all...] |
/bionic/libm/upstream-netbsd/lib/libm/complex/ |
cpow.c | 40 double x, y, r, theta, absa, arga; local 50 theta = x * arga; 53 theta = theta + y * log(absa); 55 w = r * cos(theta) + (r * sin(theta)) * I;
|
cpowf.c | 40 float x, y, r, theta, absa, arga; local 50 theta = x * arga; 53 theta = theta + y * logf(absa); 55 w = r * cosf(theta) + (r * sinf(theta)) * I;
|
cpowl.c | 40 long double x, y, r, theta, absa, arga; local 50 theta = x * arga; 53 theta = theta + y * logl(absa); 55 w = r * cosl(theta) + (r * sinl(theta)) * I;
|
/prebuilts/go/darwin-x86/src/math/cmplx/ |
example_test.go | 25 r, theta := cmplx.Polar(2i) 26 fmt.Printf("r: %.1f, ?: %.1f*?", r, theta/math.Pi)
|
/prebuilts/go/linux-x86/src/math/cmplx/ |
example_test.go | 25 r, theta := cmplx.Polar(2i) 26 fmt.Printf("r: %.1f, ?: %.1f*?", r, theta/math.Pi)
|
/external/freetype/src/base/ |
fttrigon.c | 165 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 = FT_ANGLE_PI2 [all...] |
/external/llvm/test/CodeGen/X86/ |
legalize-libcalls.ll | 6 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
|
2011-02-23-UnfoldBug.ll | 10 %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 ]
|
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/ |
2011-02-23-UnfoldBug.ll | 10 %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 ]
|