Home
last modified time | relevance | path

Searched refs:abs (Results 1 – 25 of 62) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/
DddAbs.decTest29 ddabs001 abs '1' -> '1'
30 ddabs002 abs '-1' -> '1'
31 ddabs003 abs '1.00' -> '1.00'
32 ddabs004 abs '-1.00' -> '1.00'
33 ddabs005 abs '0' -> '0'
34 ddabs006 abs '0.00' -> '0.00'
35 ddabs007 abs '00.0' -> '0.0'
36 ddabs008 abs '00.00' -> '0.00'
37 ddabs009 abs '00' -> '0'
39 ddabs010 abs '-2' -> '2'
[all …]
DdqAbs.decTest29 dqabs001 abs '1' -> '1'
30 dqabs002 abs '-1' -> '1'
31 dqabs003 abs '1.00' -> '1.00'
32 dqabs004 abs '-1.00' -> '1.00'
33 dqabs005 abs '0' -> '0'
34 dqabs006 abs '0.00' -> '0.00'
35 dqabs007 abs '00.0' -> '0.0'
36 dqabs008 abs '00.00' -> '0.00'
37 dqabs009 abs '00' -> '0'
39 dqabs010 abs '-2' -> '2'
[all …]
Dabs.decTest2 -- abs.decTest -- decimal absolute value --
32 absx001 abs '1' -> '1'
33 absx002 abs '-1' -> '1'
34 absx003 abs '1.00' -> '1.00'
35 absx004 abs '-1.00' -> '1.00'
36 absx005 abs '0' -> '0'
37 absx006 abs '0.00' -> '0.00'
38 absx007 abs '00.0' -> '0.0'
39 absx008 abs '00.00' -> '0.00'
40 absx009 abs '00' -> '0'
[all …]
Dtestall.decTest25 dectest: abs
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_cmath.py101 absolute_error = abs(b-a)
109 if absolute_error <= max(abs_err, rel_err * abs(a)):
327 actual = complex(abs(actual.real), actual.imag)
328 expected = complex(abs(expected.real), expected.imag)
330 actual = complex(actual.real, abs(actual.imag))
331 expected = complex(expected.real, abs(expected.imag))
356 if abs(a[0] - b[0]) > eps or abs(a[1] - b[1]) > eps:
410 self.assertEqual(abs(z), 0.0)
414 self.assertEqual(abs(z), INF)
417 self.assertEqual(abs(complex(NAN, -INF)), INF)
[all …]
Dtest_long_future.py27 a, b = abs(a), abs(b)
103 if skip_small and max(abs(a), abs(b)) < 2**DBL_MANT_DIG:
Dtest_timeout.py125 _delta = abs(_t1 - _t2)
142 _delta = abs(_t1 - _t2)
159 _delta = abs(_t1 - _t2)
176 _delta = abs(_t1 - _t2)
Ddouble_const.py23 diff = abs(x - x2)
Dtest_ossaudiodev.py79 self.assertTrue(abs(expected_time - 3.51) < 1e-2, expected_time)
86 percent_diff = (abs(elapsed_time - expected_time) / expected_time) * 100
Dtest_builtin.py79 self.assertEqual(abs(0), 0)
80 self.assertEqual(abs(1234), 1234)
81 self.assertEqual(abs(-1234), 1234)
82 self.assertTrue(abs(-sys.maxint-1) > 0)
84 self.assertEqual(abs(0.0), 0.0)
85 self.assertEqual(abs(3.14), 3.14)
86 self.assertEqual(abs(-3.14), 3.14)
88 self.assertEqual(abs(0L), 0L)
89 self.assertEqual(abs(1234L), 1234L)
90 self.assertEqual(abs(-1234L), 1234L)
[all …]
Dtest_complex.py31 if abs(x) > abs(y):
34 return abs(x) < eps
36 return abs(y) < eps
38 self.assertTrue(abs((x-y)/y) < eps)
448 self.assertAlmostEqual((num.real**2 + num.imag**2) ** 0.5, abs(num))
Dtest_math.py58 if abs(ulps_error) <= ulps:
76 permitted_error = max(abs_err, rel_err * abs(expected))
77 if abs(error) < permitted_error:
134 if abs(value-expected) > eps:
325 self.assertEqual(abs(math.copysign(2., NAN)), 2.)
444 if abs(mant-emant) > eps or exp != eexp:
496 tail = max(len(bin(abs(tmant)))-2 - mant_dig, etiny - texp)
630 if abs(v1-e1) > eps or abs(v2-e2):
Dtest_bool.py65 self.assertEqual(abs(False), 0)
66 self.assertIsNot(abs(False), False)
70 self.assertEqual(abs(True), 1)
71 self.assertIsNot(abs(True), True)
Dsortperf.py126 L = map(abs, [-0.5] * n)
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
DXabs.c21 abs(int j) in abs() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DComplex.py171 abs = radius = __abs__ variable in Complex
218 r = pow(self.abs(), n)
241 ok = abs(result - value) <= fuzz
243 print '!!\t!!\t!! should be', value, 'diff', abs(result - value)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dfilecmp.py267 def _cmp(a, b, sh, abs=abs, cmp=cmp): argument
269 return not abs(cmp(a, b, sh))
Dntpath.py487 abs = abspath(normpath(path))
488 prefix, rest = splitunc(abs)
491 prefix, rest = splitdrive(abs)
Dfractions.py256 if abs(bound2 - self) <= abs(bound1-self):
499 return Fraction(abs(a._numerator), a._denominator)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dclient.py108 aid = abs(id)
116 arid = abs(rid)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Lib/
Dntpath.py492 abs = abspath(normpath(path))
493 prefix, rest = splitunc(abs)
496 prefix, rest = splitdrive(abs)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Lib/
Dntpath.py522 abs = abspath(normpath(path))
523 prefix, rest = splitunc(abs)
526 prefix, rest = splitdrive(abs)
/device/google/dragon/audio/hal/dsp/tests/
Dplot_fftl.m26 semilogx(NQ*(1:K)/K, 20*log10(abs(fr)));
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dimageop.c139 nlen = (abs(newx2-newx1)+1)*(abs(newy2-newy1)+1)*size; in imageop_crop()
140 …if ( !check_multiply_size(nlen, abs(newx2-newx1)+1, "abs(newx2-newx1)+1", abs(newy2-newy1)+1, "abs… in imageop_crop()
/device/linaro/bootloader/edk2/StdLib/Include/
Dstdlib.h312 int abs(int j);

123