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. The returned value rop has a non-negative real part, and if its real part is zero, a non-negative imaginary part.

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. When both op1 and op2 are zero, the result has real part 1, and imaginary part 0, with sign being the opposite of that of op2.

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)
Function: int mpc_log10 (mpc_t rop, mpc_t op, mpc_rnd_t rnd)

Set rop to the natural and base-10 logarithm of op respectively, 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] and ]-\pi/log(10) , \pi/log(10)] respectively.


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

This document was generated on September 15, 2012 using texi2html 5.0.

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