| mpfr_libmpfr_ui_pow_ui Method | 
 
            Set rop to op1 raised to op2, rounded in the direction rnd.
            
 
    Namespace: 
   Math.Mpfr.Native
    Assembly:
   Math.Mpfr.Native (in Math.Mpfr.Native.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntaxpublic static int mpfr_ui_pow_ui(
	mpfr_t rop,
	uint op1,
	uint op2,
	mpfr_rnd_t rnd
)
Public Shared Function mpfr_ui_pow_ui ( 
	rop As mpfr_t,
	op1 As UInteger,
	op2 As UInteger,
	rnd As mpfr_rnd_t
) As Integer
public:
static int mpfr_ui_pow_ui(
	mpfr_t^ rop, 
	unsigned int op1, 
	unsigned int op2, 
	mpfr_rnd_t rnd
)
static member mpfr_ui_pow_ui : 
        rop : mpfr_t * 
        op1 : uint32 * 
        op2 : uint32 * 
        rnd : mpfr_rnd_t -> int 
Parameters
- rop
- Type: Math.Mpfr.Nativempfr_t
 The result floating-point number.
- op1
- Type: SystemUInt32
 The first operand floating-point number.
- op2
- Type: SystemUInt32
 The second operand floating-point number.
- rnd
- Type: Math.Mpfr.Nativempfr_rnd_t
 The rounding direction.
Return Value
Type: 
Int32Return zero, a positive, or a negative value if 
rop is respectively equal to, greater than, or lower than the exact result. See 
GNU MPFR - Rounding Modes for details.
 Remarks
Remarks
            Special values are handled as described in the ISO C99 and IEEE 754-2008 standards for the pow function: 
            
- 
            pow(±0, y) returns plus or minus infinity for y a negative odd integer. 
            
- 
            pow(±0, y) returns plus infinity for y negative and not an odd integer. 
            
- 
            pow(±0, y) returns plus or minus zero for y a positive odd integer. 
            
- 
            pow(±0, y) returns plus zero for y positive and not an odd integer. 
            
- 
            pow(-1, ±Inf) returns 1. 
            
- 
            pow(+1, y) returns 1 for any y, even a NaN. 
            
- 
            pow(x, ±0) returns 1 for any x, even a NaN. 
            
- 
            pow(x, y) returns NaN for finite negative x and finite non-integer y. 
            
- 
            pow(x, -Inf) returns plus infinity for 0 < abs(x) < 1, and plus zero for abs(x) > 1. 
            
- 
            pow(x, +Inf) returns plus zero for 0 < abs(x) < 1, and plus infinity for abs(x) > 1. 
            
- 
            pow(-Inf, y) returns minus zero for y a negative odd integer. 
            
- 
            pow(-Inf, y) returns plus zero for y negative and not an odd integer. 
            
- 
            pow(-Inf, y) returns minus infinity for y a positive odd integer. 
            
- 
            pow(-Inf, y) returns plus infinity for y positive and not an odd integer. 
            
- 
            pow(+Inf, y) returns plus zero for y negative, and plus infinity for y positive. 
            
            Note: When 0 is of integer type, it is regarded as +0 by these functions.
            We do not use the usual limit rules in this case, as these rules are not used for pow.
            
 Examples
Examples
mpfr_t rop = new mpfr_t();
mpfr_lib.mpfr_init2(rop, 64U);
Assert.IsTrue(mpfr_lib.mpfr_ui_pow_ui(rop, 2, 10, mpfr_rnd_t.MPFR_RNDN) == 0);
Assert.IsTrue(mpfr_lib.mpfr_get_d(rop, mpfr_rnd_t.MPFR_RNDN) == 1024.0);
mpfr_lib.mpfr_clear(rop);
Dim rop As mpfr_t = New mpfr_t()
mpfr_lib.mpfr_init2(rop, 64U)
Assert.IsTrue(mpfr_lib.mpfr_ui_pow_ui(rop, 2, 10, mpfr_rnd_t.MPFR_RNDN) = 0)
Assert.IsTrue(mpfr_lib.mpfr_get_d(rop, mpfr_rnd_t.MPFR_RNDN) = 1024.0)
mpfr_lib.mpfr_clear(rop)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
 See Also
See Also