gmp_libmpz_bin_uiui Method |
Namespace: Math.Gmp.Native
public static void mpz_bin_uiui( mpz_t rop, uint n, uint k )
Public Shared Sub mpz_bin_uiui ( rop As mpz_t, n As UInteger, k As UInteger )
public: static void mpz_bin_uiui( mpz_t^ rop, unsigned int n, unsigned int k )
static member mpz_bin_uiui : rop : mpz_t * n : uint32 * k : uint32 -> unit
// Create, initialize, and set the value of rop to 0. mpz_t rop = new mpz_t(); gmp_lib.mpz_init(rop); // Set rop to the binomial coefficient (4:2). gmp_lib.mpz_bin_uiui(rop, 4U, 2U); // Assert that rop is 6. Assert.IsTrue(gmp_lib.mpz_get_si(rop) == 6); // 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 to the binomial coefficient (4:2). gmp_lib.mpz_bin_uiui(rop, 4UI, 2UI) ' Assert that rop is 6. Assert.IsTrue(gmp_lib.mpz_get_si(rop) = 6) ' 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.