Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(1)  |  Import(1)
An mpc represents a complex number using a pair of mpf:s (one
for the real part and another for the imaginary part.) The mpc
class behaves fairly similarly to Python's complex type.

src/s/y/sympy-HEAD/sympy/polys/domains/mpelements.py   sympy(Download)
from sympy.polys.domains.domainelement import DomainElement
 
from sympy.mpmath.ctx_mp_python import PythonMPContext, _mpf, _mpc, _constant
from sympy.mpmath.libmp import (MPZ_ONE, fzero, fone, finf, fninf, fnan,
    round_nearest, mpf_mul, mpf_abs, mpf_lt, mpc_abs, repr_dps, int_types,
class ComplexElement(_mpc, DomainElement):
    """An element of a complex domain. """
 
    __slots__ = ['__mpc__']