/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | cmathmodule.c | 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 104 [special_type((z).imag)]; \ 133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos() 135 r.real = atan2(fabs(z.imag), z.real); in c_acos() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 140 M_LN2*2., z.imag); in c_acos() 142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 143 M_LN2*2., -z.imag); in c_acos() 147 s1.imag = -z.imag; in c_acos() 150 s2.imag = z.imag; in c_acos() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | cmathmodule.c | 101 if (!Py_IS_FINITE((z).real) || !Py_IS_FINITE((z).imag)) { \ 104 [special_type((z).imag)]; \ 133 if (fabs(z.real) > CM_LARGE_DOUBLE || fabs(z.imag) > CM_LARGE_DOUBLE) { in c_acos() 135 r.real = atan2(fabs(z.imag), z.real); in c_acos() 139 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 140 M_LN2*2., z.imag); in c_acos() 142 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in c_acos() 143 M_LN2*2., -z.imag); in c_acos() 147 s1.imag = -z.imag; in c_acos() 150 s2.imag = z.imag; in c_acos() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/ |
D | complexobject.c | 38 r.imag = a.imag + b.imag; in c_sum() 47 r.imag = a.imag - b.imag; in c_diff() 56 r.imag = -a.imag; in c_neg() 64 r.real = a.real*b.real - a.imag*b.imag; in c_prod() 65 r.imag = a.real*b.imag + a.imag*b.real; in c_prod() 97 const double abs_bimag = b.imag < 0 ? -b.imag : b.imag; in c_quot() 103 r.real = r.imag = 0.0; in c_quot() 106 const double ratio = b.imag / b.real; in c_quot() 107 const double denom = b.real + b.imag * ratio; in c_quot() 108 r.real = (a.real + a.imag * ratio) / denom; in c_quot() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/ |
D | complexobject.c | 38 r.imag = a.imag + b.imag; in c_sum() 47 r.imag = a.imag - b.imag; in c_diff() 56 r.imag = -a.imag; in c_neg() 64 r.real = a.real*b.real - a.imag*b.imag; in c_prod() 65 r.imag = a.real*b.imag + a.imag*b.real; in c_prod() 97 const double abs_bimag = b.imag < 0 ? -b.imag : b.imag; in c_quot() 103 r.real = r.imag = 0.0; in c_quot() 106 const double ratio = b.imag / b.real; in c_quot() 107 const double denom = b.real + b.imag * ratio; in c_quot() 108 r.real = (a.real + a.imag * ratio) / denom; in c_quot() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_complex.py | 17 unittest.TestCase.assertAlmostEqual(self, a.imag, b.imag) 20 unittest.TestCase.assertAlmostEqual(self, a.imag, 0.) 24 unittest.TestCase.assertAlmostEqual(self, 0., b.imag) 66 self.assertCloseAbs(x.imag, y.imag, eps) 144 def check(n, deltas, is_equal, imag = 0.0): argument 147 z = complex(i, imag) 280 self.assertAlmostEqual(complex(real=17, imag=23), 17+23j) 282 self.assertAlmostEqual(complex(real=17+23j, imag=23), 17+46j) 283 self.assertAlmostEqual(complex(real=1+2j, imag=3+4j), -3+5j) 292 self.assertEqual(split_zeros(complex(1., 0.).imag), split_zeros(0.)) [all …]
|
D | test_abstract_numbers.py | 14 self.assertEqual(0, int(7).imag) 24 self.assertEqual(0, long(7).imag) 34 self.assertEqual(0, float(7.3).imag)
|
D | test_cmath.py | 274 self.assertEqual(0., z.imag) 281 self.assertEqual(0., z.imag) 290 return cmath.rect(z.real, z.imag) 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)) 346 expected.real, expected.imag, 347 actual.real, actual.imag) 351 self.rAssertAlmostEqual(expected.imag, actual.imag, [all …]
|
D | cmath_testcases.txt | 37 -- ignore-imag-sign : indicates that the sign of the imaginary part 208 acos1018 acos inf nan -> nan inf ignore-imag-sign 209 acos1019 acos -inf nan -> nan inf ignore-imag-sign 534 asin1014 asin -inf nan -> nan inf ignore-imag-sign 543 asin1023 asin inf nan -> nan inf ignore-imag-sign 863 atan1012 atan -inf nan -> -1.5707963267948966 0.0 ignore-imag-sign 874 atan1023 atan inf nan -> 1.5707963267948966 0.0 ignore-imag-sign 1533 sqrt1017 sqrt -inf nan -> nan inf ignore-imag-sign 1640 exp1022 exp -inf inf -> 0.0 0.0 ignore-real-sign ignore-imag-sign 1642 exp1024 exp -inf nan -> 0.0 0.0 ignore-real-sign ignore-imag-sign [all …]
|
D | test_coercion.py | 254 format_float(value.imag))
|
D | test_descr.py | 282 if self.imag == 0.0: 285 return "%.*gj" % (prec, self.imag) 286 return "(%.*g+%.*gj)" % (prec, self.real, prec, self.imag) 2559 return "%.17gj%+.17g" % (self.imag, self.real) 2814 self.assertEqual(complex(imag=42, real=666), complex(666, 42))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/ |
D | complexobject.h | 11 double imag; member 51 PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/ |
D | complexobject.h | 11 double imag; member 51 PyAPI_FUNC(PyObject *) PyComplex_FromDoubles(double real, double imag);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | numbers.py | 65 def imag(self): member in Complex 259 def imag(self): member in Real
|
D | copy_reg.py | 40 return complex, (c.real, c.imag)
|
D | fractions.py | 532 if isinstance(b, numbers.Complex) and b.imag == 0:
|
D | decimal.py | 1605 def imag(self): member in Decimal 1607 imag = property(imag) variable in Decimal
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | numbers.py | 65 def imag(self): member in Complex 259 def imag(self): member in Real
|
D | copy_reg.py | 40 return complex, (c.real, c.imag)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/ |
D | marshal.c | 767 c.imag = PyOS_string_to_double(buf, NULL, NULL); in r_object() 768 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object() 797 c.imag = _PyFloat_Unpack8(buf, 1); in r_object() 798 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Python/ |
D | marshal.c | 772 c.imag = PyOS_string_to_double(buf, NULL, NULL); in r_object() 773 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object() 802 c.imag = _PyFloat_Unpack8(buf, 1); in r_object() 803 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | marshal.c | 767 c.imag = PyOS_string_to_double(buf, NULL, NULL); in r_object() 768 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object() 797 c.imag = _PyFloat_Unpack8(buf, 1); in r_object() 798 if (c.imag == -1.0 && PyErr_Occurred()) { in r_object()
|
D | ast.c | 3335 complex.imag = PyOS_string_to_double(s, (char **)&end, NULL); in parsenumber() 3336 if (complex.imag == -1.0 && PyErr_Occurred()) in parsenumber()
|
D | compile.c | 948 imag_negzero = z.imag == 0.0 && copysign(1.0, z.imag) < 0.0; in compiler_add_o()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/metaclasses/ |
D | meta-vladimir.txt | 2 From: Vladimir Marangozov <Vladimir.Marangozov@imag.fr>
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | ast.c | 3352 complex.imag = PyOS_string_to_double(s, (char **)&end, NULL); in parsenumber() 3353 if (complex.imag == -1.0 && PyErr_Occurred()) in parsenumber()
|