/external/apache-commons-math/src/main/java/org/apache/commons/math/estimation/ |
LevenbergMarquardtEstimator.java | 710 final double cos; local 715 cos = sin * cotan; 718 cos = 1.0 / FastMath.sqrt(1.0 + tan * tan); 719 sin = cos * tan; 724 jacobian[k * cols + pk] = cos * rkk + sin * lmDiag[k]; 725 final double temp = cos * work[k] + sin * qtbpj; 726 qtbpj = -sin * work[k] + cos * qtbpj; 732 final double temp2 = cos * rik + sin * lmDiag[i]; 733 lmDiag[i] = -sin * rik + cos * lmDiag[i];
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/general/ |
LevenbergMarquardtOptimizer.java | 711 final double cos; local 716 cos = sin * cotan; 719 cos = 1.0 / FastMath.sqrt(1.0 + tan * tan); 720 sin = cos * tan; 725 wjacobian[k][pk] = cos * rkk + sin * lmDiag[k]; 726 final double temp = cos * work[k] + sin * qtbpj; 727 qtbpj = -sin * work[k] + cos * qtbpj; 733 final double temp2 = cos * rik + sin * lmDiag[i]; 734 lmDiag[i] = -sin * rik + cos * lmDiag[i]; [all...] |
/frameworks/av/media/libaudioprocessing/ |
AudioResamplerFirGen.h | 29 * rather than invoking the math library sin() or cos() each time. 35 * e^i(wstart+wstep) = 2cos(wstep) * e^i(wstart) - e^i(wstart-wstep) 39 * sin(wstart+wstep) = 2cos(wstep) * sin(wstart) - sin(wstart-wstep) 54 mCurrent = cos(wstart); 55 mPrevious = cos(wstart - wstep); 60 mTwoCos = 2.*cos(wstep); 105 mTwoCos = 2.*cos(innerStep); 430 accum += cos(ix*w)*static_cast<double>(*coef++); 459 * Hpp[n, w, w_0] = sum_{k=0}^{n} x[k] * cos(wk + w_0) 461 * = cos(wn+w_0) * s[n] - cos(w(n+1)+w_0) * s[n-1 [all...] |
/external/mesa3d/src/gallium/state_trackers/vega/ |
arc.c | 138 double COS, SIN, x0p, y0p, x1p, y1p, pcx0, pcy0, pcx1, pcy1; 142 COS = cos(rot); SIN = sin(rot); 145 x0p = (x0*COS + y0*SIN)/rh; 146 y0p = (-x0*SIN + y0*COS)/rv; 147 x1p = (x1*COS + y1*SIN)/rh; 148 y1p = (-x1*SIN + y1*COS)/rv; 157 *cx0 = pcx0*COS - pcy0*SIN; 158 *cy0 = pcx0*SIN + pcy0*COS; 159 *cx1 = pcx1*COS - pcy1*SIN [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
Sphere.java | 88 float cosi = (float) Math.cos(angleStepI * i); 89 float cosj = (float) Math.cos(angleStepJ * j);
|
/external/eigen/Eigen/src/Geometry/ |
Rotation2D.h | 191 EIGEN_USING_STD_MATH(cos) 193 Scalar cosA = cos(m_angle);
|
/external/pdfium/third_party/lcms2-2.6/src/ |
cmscam02.c | 200 (cos((clr.h * d2r + 2.0)) + 3.8); 254 (cos((clr.h * d2r + 2.0)) + 3.8); 266 if (fabs(sin(hr)) >= fabs(cos(hr))) { 270 (cos(hr) / sin(hr)) - (27.0 / 1403.0) + 272 clr.a = clr.b * (cos(hr) / sin(hr)); 275 p5 = p1 / cos(hr); 279 (sin(hr) / cos(hr))); 280 clr.b = clr.a * (sin(hr) / cos(hr));
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
transform.c | 24 tables->costab1[k] = cos(phase); 32 tables->costab2[k] = cos(phase);
|
/frameworks/support/dynamic-animation/src/android/support/animation/ |
SpringForce.java | 302 * (cosCoeff * Math.cos(mDampedFreq * deltaT) 307 + mDampedFreq * sinCoeff * Math.cos(mDampedFreq * deltaT));
|
/libcore/ojluni/src/main/java/java/time/format/ |
Parsed.java | 448 long cos = fieldValues.remove(MICRO_OF_SECOND); local 450 MICRO_OF_SECOND.checkValidValue(cos); 452 nos = cos * 1000 + (nos % 1000); 486 long cos = los * 1_000 + (fieldValues.get(MICRO_OF_SECOND) % 1_000); local 487 updateCheckConflict(MILLI_OF_SECOND, MICRO_OF_SECOND, cos); 489 fieldValues.put(NANO_OF_SECOND, cos * 1_000L); 496 long cos = fieldValues.remove(MICRO_OF_SECOND); local 497 fieldValues.put(NANO_OF_SECOND, cos * 1_000L);
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
DrawerArrowDrawable.java | 99 mMaxCutForBarSize = (float) (mBarThickness / 2 * Math.cos(ARROW_HEAD_ANGLE)); 127 final float arrowWidth = Math.round(arrowSize * Math.cos(rotation));
|
/prebuilts/go/darwin-x86/src/math/cmplx/ |
tan.go | 42 // cos 2x + cosh 2y 60 d := math.Cos(2*real(x)) + math.Cosh(2*imag(x)) 74 // tanh z = (sinh 2x + i sin 2y) / (cosh 2x + cos 2y) . 84 d := math.Cosh(2*real(x)) + math.Cos(2*imag(x)) 109 // Taylor series expansion for cosh(2y) - cos(2x) 162 // cosh 2y - cos 2x 178 d := math.Cosh(2*imag(x)) - math.Cos(2*real(x))
|
/prebuilts/go/linux-x86/src/math/cmplx/ |
tan.go | 42 // cos 2x + cosh 2y 60 d := math.Cos(2*real(x)) + math.Cosh(2*imag(x)) 74 // tanh z = (sinh 2x + i sin 2y) / (cosh 2x + cos 2y) . 84 d := math.Cosh(2*real(x)) + math.Cos(2*imag(x)) 109 // Taylor series expansion for cosh(2y) - cos(2x) 162 // cosh 2y - cos 2x 178 d := math.Cosh(2*imag(x)) - math.Cos(2*real(x))
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
e_j0.c | 26 * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0)) 27 * where x0 = x-pi/4. It is better to compute sin(x0),cos(x0) 29 * cos(x0) = cos(x)cos(pi/4)+sin(x)sin(pi/4) 30 * = 1/sqrt(2) * (cos(x) + sin(x)) 31 * sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4) 32 * = 1/sqrt(2) * (sin(x) - cos(x)) 34 * sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x) [all...] |
e_j1.c | 26 * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1)) 27 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 28 * where x1 = x-3*pi/4. It is better to compute sin(x1),cos(x1) 30 * cos(x1) = cos(x)cos(3pi/4)+sin(x)sin(3pi/4) 31 * = 1/sqrt(2) * (sin(x) - cos(x)) 32 * sin(x1) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4) 33 * = -1/sqrt(2) * (sin(x) + cos(x) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
BitsStreamGenerator.java | 105 random = r * FastMath.cos(alpha);
|
/external/eigen/doc/ |
tutorial.cpp | 39 m3 = m3.cwise().cos();
|
/external/libvpx/libvpx/test/ |
idct8x8_test.cc | 32 output[k] += input[n] * cos(kPi * (2 * n + 1) * k / 16.0);
|
/external/ltp/testcases/misc/math/float/exp_log/ |
genhypot.c | 54 tabR[i] = hypot(cos(Inc * i), sin(Inc * i));
|
/frameworks/base/core/tests/benchmarks/src/android/util/ |
FloatMathBenchmark.java | 44 f += FloatMath.cos(100.123f);
|
/frameworks/base/rs/java/android/renderscript/ |
Matrix2f.java | 106 c = (float)java.lang.Math.cos(rot);
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
Matrix2f.java | 109 c = (float)java.lang.Math.cos(rot);
|
/hardware/invensense/6515/libsensors_iio/software/core/driver/include/ |
mlmath.h | 60 #define cos(x) ml_cos(x) macro
|
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/ |
mlmath.h | 60 #define cos(x) ml_cos(x) macro
|
/prebuilts/go/darwin-x86/src/math/ |
stubs_arm64.s | 69 TEXT ·Cos(SB),NOSPLIT,$0 70 B ·cos(SB)
|