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

123

/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
H A DFFT.java29 private double[] cos; // precomputed cosine tables for FFT field in class:FFT
49 cos = new double[mFFTSamplingSize / 2];
53 cos[i] = Math.cos(-2 * Math.PI * i / mFFTSamplingSize);
97 c = cos[a];
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowFloatMath.java42 public static float cos(float angle) { method in class:ShadowFloatMath
43 return (float) Math.cos(angle);
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
H A DShadowFloatMath.java42 public static float cos(float angle) { method in class:ShadowFloatMath
43 return (float) Math.cos(angle);
/external/python/cpython2/Demo/turtle/
H A Dtdemo_penrose.py19 from math import cos, pi namespace
23 d = 2 * cos(3*pi/10)
/external/python/cpython3/Lib/turtledemo/
H A Dpenrose.py19 from math import cos, pi namespace
23 d = 2 * cos(3*pi/10)
/external/fonttools/Lib/fontTools/misc/
H A DbezierTools.py253 from math import sqrt, acos, cos, pi namespace
310 x0 = rQ2*cos(theta/3.0) - a1/3.0
311 x1 = rQ2*cos((theta+2.0*pi)/3.0) - a1/3.0
312 x2 = rQ2*cos((theta+4.0*pi)/3.0) - a1/3.0
/external/fonttools/Tools/fontTools/misc/
H A DbezierTools.py253 from math import sqrt, acos, cos, pi namespace
310 x0 = rQ2*cos(theta/3.0) - a1/3.0
311 x1 = rQ2*cos((theta+2.0*pi)/3.0) - a1/3.0
312 x2 = rQ2*cos((theta+4.0*pi)/3.0) - a1/3.0
/external/skia/gm/
H A Danisotropic.cpp44 SkScalar angle = 0.0f, sin, cos; variable
48 sin = SkScalarSinCos(angle, &cos);
49 canvas.drawLine(cos * kInnerOffset, sin * kInnerOffset,
50 cos * kImageSize/2, sin * kImageSize/2, p);
H A Dstrokedlines.cpp25 SkScalar cos, sin; local
28 sin = SkScalarSinCos(angle + (SK_ScalarPI/4), &cos);
30 cos *= kRadius / 2.0f;
34 p.lineTo(offset.fX + cos, offset.fY + sin);
38 sin = SkScalarSinCos(angle - (SK_ScalarPI/4), &cos);
40 cos *= kRadius / 2.0f;
44 p.lineTo(offset.fX + cos, offset.fY + sin);
53 SkScalar sin, cos, angle = 0.0f; local
55 sin = SkScalarSinCos(angle, &cos);
57 cos *
[all...]
H A Dconvex_all_line_paths.cpp13 float angleStep = 360.0f / n, angle = 0.0f, sin, cos; local
19 sin = SkScalarSinCos(SkDegreesToRadians(angle), &cos);
21 pts[i].fY = cos * height;
/external/skia/tests/
H A DTracingTest.cpp129 SkScalar cos; local
130 SkScalar sin = SkScalarSinCos(rad, &cos);
132 TRACE_COUNTER1("skia", "cos", cos * 1000.0f + 1000.0f);
144 SkScalar cos; local
145 SkScalar sin = SkScalarSinCos(rad, &cos);
148 "cos", cos * 1000.0f + 1000.0f);
/external/skqp/gm/
H A Danisotropic.cpp44 SkScalar angle = 0.0f, sin, cos; variable
48 sin = SkScalarSinCos(angle, &cos);
49 canvas.drawLine(cos * kInnerOffset, sin * kInnerOffset,
50 cos * kImageSize/2, sin * kImageSize/2, p);
H A Dstrokedlines.cpp25 SkScalar cos, sin; local
28 sin = SkScalarSinCos(angle + (SK_ScalarPI/4), &cos);
30 cos *= kRadius / 2.0f;
34 p.lineTo(offset.fX + cos, offset.fY + sin);
38 sin = SkScalarSinCos(angle - (SK_ScalarPI/4), &cos);
40 cos *= kRadius / 2.0f;
44 p.lineTo(offset.fX + cos, offset.fY + sin);
53 SkScalar sin, cos, angle = 0.0f; local
55 sin = SkScalarSinCos(angle, &cos);
57 cos *
[all...]
H A Dconvex_all_line_paths.cpp13 float angleStep = 360.0f / n, angle = 0.0f, sin, cos; local
19 sin = SkScalarSinCos(SkDegreesToRadians(angle), &cos);
21 pts[i].fY = cos * height;
/external/skqp/tests/
H A DTracingTest.cpp129 SkScalar cos; local
130 SkScalar sin = SkScalarSinCos(rad, &cos);
132 TRACE_COUNTER1("skia", "cos", cos * 1000.0f + 1000.0f);
144 SkScalar cos; local
145 SkScalar sin = SkScalarSinCos(rad, &cos);
148 "cos", cos * 1000.0f + 1000.0f);
/external/aac/libFDK/src/
H A DFDK_trigFcts.cpp326 void fixp_cos_sin(FIXP_DBL x, int scale, FIXP_DBL *cos, FIXP_DBL *sin) { argument
334 *cos = cosine - error0;
337 *cos = SATURATE_LEFT_SHIFT(cosine - error0, 1, DFRACT_BITS);
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
H A DDfpMath.java696 /** Computes cos(a) Used when 0 < a < pi/4.
699 * @return cos(a)
783 * @return cos(a)
785 public static Dfp cos(Dfp a) { method in class:DfpMath
793 /* if x < 0 then apply identity cos(-x) = cos(x) */
799 /* Since cos(x) = -cos(pi - x) we can reduce the range to
836 return sin(a).divide(cos(a));
/external/skia/samplecode/
H A DSampleVertices.cpp163 SkScalar cos; local
164 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos);
165 v[i+1].set(cos, sin);
191 SkScalar cos; local
192 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos);
193 v[i*2 + 0].set(cos/2, sin/2);
194 v[i*2 + 1].set(cos, sin);
/external/skqp/samplecode/
H A DSampleVertices.cpp163 SkScalar cos; local
164 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos);
165 v[i+1].set(cos, sin);
191 SkScalar cos; local
192 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos);
193 v[i*2 + 0].set(cos/2, sin/2);
194 v[i*2 + 1].set(cos, sin);
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
H A DComplex.java527 * <code> cos(a + bi) = cos(a)cosh(b) - sin(a)sinh(b)i</code></pre>
529 * {@link java.lang.Math#sin}, {@link java.lang.Math#cos},
539 * cos(1 &plusmn; INFINITY i) = 1 &#x2213; INFINITY i
540 * cos(&plusmn;INFINITY + i) = NaN + NaN i
541 * cos(&plusmn;INFINITY &plusmn; INFINITY i) = NaN + NaN i</code></pre></p>
546 public Complex cos() { method in class:Complex
551 return createComplex(FastMath.cos(real) * MathUtils.cosh(imaginary),
561 * <code> cosh(a + bi) = cosh(a)cos(b) + sinh(a)sin(b)i</code></pre>
563 * {@link java.lang.Math#sin}, {@link java.lang.Math#cos},
[all...]
/external/clang/lib/Headers/
H A D__clang_cuda_cmath.h56 __DEVICE__ float cos(float __x) { return ::cosf(__x); } function
/external/eigen/Eigen/src/plugins/
H A DArrayCwiseUnaryOps.h84 * \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_exp">Math functions</a>, pow(), log(), sin(), cos()
192 * This function computes the coefficient-wise cosine. The function MatrixBase::cos() in the
202 cos() const function
216 * \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_sin">Math functions</a>, cos(), asin()
230 * \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_tan">Math functions</a>, cos(), sin()
258 * \sa <a href="group__CoeffwiseMathFunctions.html#cwisetable_acos">Math functions</a>, cos(), asin()
309 /** \returns an expression of the coefficient-wise hyperbolic cos of *this.
/external/valgrind/memcheck/tests/
H A Dvcpu_fbench.c16 cos, tan, etc, will be used as supplied by <math.h>. If it is
348 #define cos I_cos macro
438 /* cos(x) Return cosine, x in radians, by identity */
440 static double cos(x) function
454 return sin(x) / cos(x);
670 cos(-rang)) / (from_index *
671 cos(axis_slope_angle)));
/external/valgrind/perf/
H A Dfbench.c12 cos, tan, etc, will be used as supplied by <math.h>. If it is
344 #define cos I_cos macro
434 /* cos(x) Return cosine, x in radians, by identity */
436 static double cos(x) function
450 return sin(x) / cos(x);
666 cos(-rang)) / (from_index *
667 cos(axis_slope_angle)));
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
H A DMatrixFunction.h555 const MatrixFunctionReturnValue<Derived> MatrixBase<Derived>::cos() const function in class:Eigen::MatrixBase

Completed in 761 milliseconds

123