Next: Trigonometric Functions, Previous: Basic Arithmetic Functions, Up: Complex Functions [Index]
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.
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.
Set rop to the exponential of op, rounded according to rnd with the precision of rop.
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.
Set rop to the standard primitive n-th root of unity raised to the power k, that is, exp (2 Pi i k / n), rounded according to rnd with the precision of rop.
Set rop to the arithmetic-geometric mean (AGM) of a and b, rounded according to rnd with the precision of rop. Concerning the branch cut, the function is computed by homogeneity either as a AGM(1,b0) with b0=b/a if |a|>=|b|, or as b AGM(1,b0) with b0=a/b otherwise; then when b0 is real and negative, AGM(1,b0) is chosen to have positive imaginary part.
Next: Trigonometric Functions, Previous: Basic Arithmetic Functions, Up: Complex Functions [Index]