Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 79) sorted by relevance

1234

/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/
DTestSqrt.rs24 return sqrt(inV);
28 return sqrt(inV);
32 return sqrt(inV);
36 return sqrt(inV);
40 return sqrt(inV);
44 return sqrt(inV);
48 return sqrt(inV);
52 return sqrt(inV);
/cts/tests/tests/libcorelegacy22/src/android/util/cts/
DFloatMathTest.java24 assertEquals(5.0f, FloatMath.sqrt(25)); in testSqrt()
25 assertEquals(7, FloatMath.sqrt(49), 0); in testSqrt()
26 assertEquals(10, FloatMath.sqrt(100), 0); in testSqrt()
27 assertEquals(0, FloatMath.sqrt(0), 0); in testSqrt()
28 assertEquals(1, FloatMath.sqrt(1), 0); in testSqrt()
/cts/tests/tests/location/src/android/location/cts/psedorange/
DEcef2LlaConverter.java36 Math.sqrt(Math.pow(EARTH_SEMI_MAJOR_AXIS_METERS, 2) * (1 - Math.pow(ECCENTRICITY, 2)));
37 private static final double SECOND_ECCENTRICITY = Math.sqrt(
55 double pMeters = Math.sqrt(Math.pow(ecefXMeters, 2) + Math.pow(ecefYMeters, 2)); in convertECEFToLLACloseForm()
72 / Math.sqrt(1 - Math.pow(ECCENTRICITY, 2) * (Math.pow(Math.sin(latRadians), 2))); in convertECEFToLLACloseForm()
97 double xyLengthMeters = Math.sqrt(Math.pow(ecefXMeters, 2) + Math.pow(ecefYMeters, 2));
98 double xyzLengthMeters = Math.sqrt(Math.pow(xyLengthMeters, 2) + Math.pow(ecefZMeters, 2));
128 ni = EARTH_SEMI_MAJOR_AXIS_METERS / Math.sqrt(1 - (2 - 1 / INVERSE_FLATENNING)
142 if (Math.sqrt((pResidual * pResidual + ecefZMetersResidual * ecefZMetersResidual))
DUserPositionVelocityWeightedLeastSquare.java372 Math.sqrt(positionH.getEntry(0, 0)), Math.sqrt(positionH.getEntry(1, 1)), in calculatePositionVelocityUncertaintyEnu()
373 Math.sqrt(positionH.getEntry(2, 2)), Math.sqrt(velocityH.getEntry(0, 0)), in calculatePositionVelocityUncertaintyEnu()
374 Math.sqrt(velocityH.getEntry(1, 1)), Math.sqrt(velocityH.getEntry(2, 2))}; in calculatePositionVelocityUncertaintyEnu()
813 double norm = Math.sqrt(Math.pow(r[0], 2) + Math.pow(r[1], 2) + Math.pow(r[2], 2)); in calculateGeometryMatrix()
898 * Math.sqrt( in computePseudorangeAndUncertainties()
DSatellitePositionCalculator.java112 Math.sqrt(1.0 - ephemerisProto.e * ephemerisProto.e) in calculateSatellitePositionAndVelocity()
168 double n0 = Math.sqrt(UNIVERSAL_GRAVITATIONAL_PARAMETER_M3_SM2 / (a * a * a)); in calculateSatellitePositionAndVelocity()
239 double rangeMeters = Math.sqrt(dXMeters * dXMeters + dYMeters * dYMeters + dZMeters * dZMeters); in computeUserToSatelliteRangeAndRangeRate()
DGpsMathOperations.java37 return Math.sqrt(normSqured); in vectorNorm()
DEcefToTopocentricConverter.java71 double distanceMeters = Math.sqrt(Math.pow(inputVectorMeters[0], 2) in convertCartesianToTopocentericRadMeters()
/cts/tests/sensor/src/android/hardware/cts/helpers/sensorverification/
DStandardDeviationVerificationTest.java46 (float) Math.sqrt(2.5), (float) Math.sqrt(2.5), (float) Math.sqrt(10.0) in testVerify()
DStandardDeviationVerification.java91 float mAccelNoise = (float)(graceFactorAccelGyro * Math.sqrt(currOperatingFreq) * in getDefault()
93 float mGyroNoise = (float)(graceFactorAccelGyro * Math.sqrt(currOperatingFreq) * in getDefault()
97 (float)Math.sqrt(currOperatingFreq)); // Allow extra grace for pressure in getDefault()
141 stdDevs[i] = (float) Math.sqrt(mM2s[i] / (mCount - 1)); in verify()
/cts/tools/dasm/test/
Dall_opcodes.d136 invoke-virtual {v1}, java/lang/Math/sqrt(D)D
137 invoke-super {v1}, java/lang/Math/sqrt(D)D
138 invoke-direct {v1}, java/lang/Math/sqrt(D)D
139 invoke-static {v1}, java/lang/Math/sqrt(D)D
140 ;invoke-interface {v1}, java/lang/Math/sqrt(D)D
142 invoke-virtual/range {v1..v4}, java/lang/Math/sqrt(D)D
143 invoke-super/range {v1..v4}, java/lang/Math/sqrt(D)D
144 invoke-direct/range {v1..v4}, java/lang/Math/sqrt(D)D
145 invoke-static/range {v1..v4}, java/lang/Math/sqrt(D)D
146 ;invoke-interface/range {v1..v4}, java/lang/Math/sqrt(D)D
/cts/tests/openglperf2/jni/graphics/
DVector2D.cpp49 return (float) sqrt(dx * dx + dy * dy); in distance()
67 return (float) sqrt(mX * mX + mY * mY); in magnitude()
DMatrix.cpp144 float rlf = 1.0f / (float) sqrt(fx * fx + fy * fy + fz * fz); in newLookAt()
155 float rls = 1.0f / (float) sqrt(sx * sx + sy * sy + sz * sz); in newLookAt()
289 float len = sqrt((x * x) + (y * y) + (z * z)); in newRotate()
/cts/tests/tests/location/src/android/location/cts/
DGnssPseudorangeVerificationTest.java318 Math.sqrt(posVelUncertainties[0] * posVelUncertainties[0] in testPseudoPosition()
333 double horizontalOffsetThresholdMeters = HORIZONTAL_OFFSET_SIGMA * Math.sqrt( in testPseudoPosition()
358 Math.sqrt(posVelUncertainties[4] * posVelUncertainties[4] in testPseudoPosition()
371 double horizontalSpeedOffsetThresholdMps = HORIZONTAL_OFFSET_SIGMA * Math.sqrt( in testPseudoPosition()
379 Math.sqrt(calculatedVelocityEnuMps[0] * calculatedVelocityEnuMps[0] in testPseudoPosition()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Utils/
DMathsUtils.java214 float mag = (float) Math.sqrt(mag2); in normalizeVector()
232 return (float) Math.sqrt((yDifference * yDifference) + (xDifference * xDifference)); in distanceCalculationOnXYPlane()
246 return (float) Math.sqrt((zDifference * zDifference) + (yDifference * yDifference) + in distanceCalculationInXYZSpace()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DTarget.java266 Floaty sqrt(Floaty a) { in sqrt() method in Target
271 double f = Math.sqrt(a.mValue); in sqrt()
272 double min = Math.sqrt(a.mMinValue); in sqrt()
273 double max = Math.sqrt(a.mMaxValue); in sqrt()
/cts/suite/audio_quality/lib/src/
DBuiltinProcessing.cpp62 rms = (int64_t)sqrt(energy/samples); in rms_mva()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java241 rms = Math.sqrt(calcSqrErr(vrecs, srecs2, 0)+ calcSqrErr(vrecs, srecs2, 1)); in processDataSet()
259 report.roll_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 0)); in processDataSet()
260 report.pitch_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 1)); in processDataSet()
261 report.yaw_rms_error = Math.sqrt(calcSqrErr(vrecs, srecs2, 2)); in processDataSet()
604 ret[1] = Math.sqrt(sumsq/srec.size() - ret[0]*ret[0]); in calcSensorPeriodStat()
1321 double t = Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]); in rodr2quat()
1328 double t = Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]); in rodr2quat()
1352 return Math.sqrt(Math.pow(a.x - b.x, 2) + Math.pow(a.y - b.y, 2)); in getDistanceBetweenPoints()
/cts/libs/view/src/com/android/view/
DPosition.java50 return Math.sqrt(Math.pow((mX - other.mX), 2) + Math.pow((mY - other.mY), 2)); in distanceTo()
/cts/apps/CameraITS/tests/scene1/
Dtest_yuv_plus_jpeg.py60 rms_diff = math.sqrt(
Dtest_yuv_plus_raw10.py65 rms_diff = math.sqrt(
Dtest_yuv_plus_raw12.py64 rms_diff = math.sqrt(
Dtest_yuv_plus_raw.py64 rms_diff = math.sqrt(
Dtest_jpeg.py60 rms_diff = math.sqrt(
/cts/tests/openglperf2/jni/primitive/shaderperf/
DShaderPerfRenderer.cpp21 static const float GOLDEN_RATIO = (1.0f + sqrt(5.0f)) / 2.0f;
/cts/tests/tests/hardware/src/android/hardware/cts/
DGeomagneticFieldTest.java76 Math.sqrt(field.getX() * field.getX() + field.getY() * field.getY()), in testGeomagneticField()

1234