GMP Native Interface for .NET
gmp_libmpz_mfac_uiui Method |
Set rop to the m-multi-factorial n!^(m)n.
Namespace: Math.Gmp.Native
Assembly: Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void mpz_mfac_uiui( mpz_t rop, uint n, uint m )
Public Shared Sub mpz_mfac_uiui ( rop As mpz_t, n As UInteger, m As UInteger )
public: static void mpz_mfac_uiui( mpz_t^ rop, unsigned int n, unsigned int m )
static member mpz_mfac_uiui : rop : mpz_t * n : uint32 * m : uint32 -> unit
Parameters
- rop
- Type: Math.Gmp.Nativempz_t
The result integer. - n
- Type: SystemUInt32
The first operand integer. - m
- Type: SystemUInt32
The second operand integer.
Examples
// Create, initialize, and set the value of rop to 0. mpz_t rop = new mpz_t(); gmp_lib.mpz_init(rop); // Set rop = 10!^(4). gmp_lib.mpz_mfac_uiui(rop, 10U, 4U); // Assert that rop is 945. Assert.IsTrue(gmp_lib.mpz_get_si(rop) == 120); // Release unmanaged memory allocated for rop. gmp_lib.mpz_clear(rop);
' Create, initialize, and set the value of rop to 0. Dim rop As New mpz_t() gmp_lib.mpz_init(rop) ' Set rop = 10!^(4). gmp_lib.mpz_mfac_uiui(rop, 10UI, 4UI) ' Assert that rop is 945. Assert.IsTrue(gmp_lib.mpz_get_si(rop) = 120) ' Release unmanaged memory allocated for rop. gmp_lib.mpz_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