Home | History | Annotate | Download | only in python2.7

Lines Matching defs:Complex

11 __all__ = ["Number", "Complex", "Real", "Rational", "Integral"]
34 class Complex(Number):
35 """Complex defines the operations that work on the builtin complex type.
37 In short, those are: a conversion to complex, .real, .imag, +, -,
41 knowledge about them, it should fall back to the builtin complex
49 """Return a builtin complex instance. Called for complex(self)."""
138 """self**exponent; should promote to float or complex when necessary."""
166 Complex.register(complex)
169 class Real(Complex):
170 """To Complex, Real adds the operations that work on real numbers.
248 # Concrete implementations of Complex abstract methods.
250 """complex(self) == complex(float(self), 0)"""
251 return complex(float(self))
316 2-argument version described in Complex.