These types and
functions were mainly designed for the implementation of MPC,
but may be useful for users too.
However no upward compatibility is guaranteed.
You need to include mpc-impl.h
to use them.
The mpc_t
type consists of two fields of type mpfr_t
,
one for the real part, one for the imaginary part.
These fields can be accessed through MPC_RE(z)
and MPC_IM(z)
.
Normally the real and imaginary part have the same precision, but
the function mpc_init3
enables one to have different precisions,
and the user may also use mpfr_set_prec
to change their precision.
The macro MPC_MAX_PREC(z)
gives the maximum of the precisions
of the real and imaginary parts.