(z, w, prec, rnd=round_fast)
return re, im
Complex multiplication.

    Returns the real and imaginary part of (a+bi)*(c+di), rounded to
    the specified precision. The rounding mode applies to the real and
    imaginary parts separately.
Complex multiplication.
Complex multiplication .
def mpc_mul(z, w, prec, rnd=round_fast):
    """
    Complex multiplication.

    Returns the real and imaginary part of (a+bi)*(c+di), rounded to
    the specified precision. The rounding mode applies to the real and
    imaginary parts separately.
    """
    a, b = z
    c, d = w
    p = mpf_mul(a, c)
    q = mpf_mul(b, d)
    r = mpf_mul(a, d)
    s = mpf_mul(b, c)
    re = mpf_sub(p, q, prec, rnd)
    im = mpf_add(r, s, prec, rnd)
    return re, im
def mpc_mul ( z , w , prec , rnd = round_fast ) : a , b = z c , d = w p = mpf_mul ( a , c ) q = mpf_mul ( b , d ) r = mpf_mul ( a , d ) s = mpf_mul ( b , c ) re = mpf_sub ( p , q , prec , rnd ) im = mpf_add ( r , s , prec , rnd ) return re , im