manpagez: man pages & more
info mpc
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

5.8 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)
Function: int mpc_pow_d (mpc_t rop, mpc_t op1, double op2, mpc_rnd_t rnd)
Function: int mpc_pow_ld (mpc_t rop, mpc_t op1, long double op2, mpc_rnd_t rnd)
Function: int mpc_pow_si (mpc_t rop, mpc_t op1, long op2, mpc_rnd_t rnd)
Function: int mpc_pow_ui (mpc_t rop, mpc_t op1, unsigned long op2, mpc_rnd_t rnd)
Function: int mpc_pow_z (mpc_t rop, mpc_t op1, mpz_t op2, mpc_rnd_t rnd)
Function: int mpc_pow_fr (mpc_t rop, mpc_t op1, mpfr_t op2, mpc_rnd_t rnd)

Set rop to op1 raised to the power op2, rounded according to rnd. For mpc_pow_d, mpc_pow_ld, mpc_pow_si, mpc_pow_ui, mpc_pow_z and mpc_pow_fr, the imaginary part of op2 is considered as +0.

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].


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on November 27, 2011 using texi2html 5.0.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.