Next: , Previous: Basic Arithmetic, Up: Complex Functions


5.7 Power Functions and Logarithm

— Function: int mpc_sqrt (mpc_t rop, mpc_t op, mpc_rnd_t rnd)

Set rop to the square root of op rounded according to rnd.

— Function: int mpc_pow (mpc_t rop, mpc_t op1, mpc_t op2, mpc_rnd_t rnd)

Set rop to op1 raised to the power op2, rounded according to rnd.

— Function: int mpc_exp (mpc_t rop, mpc_t op, mpc_rnd_t rnd)

Set rop to the exponential of op, rounded according to rnd with the precision of rop.

— Function: int mpc_log (mpc_t rop, mpc_t op, mpc_rnd_t rnd)

Set rop to the logarithm of op, rounded according to rnd with the precision of rop. The principal branch is chosen, with the branch cut on the negative real axis, so that the imaginary part of the result lies in ]-\pi , \pi].