gmp_libmpz_fac_ui Method |
Namespace: Math.Gmp.Native
public static void mpz_fac_ui( mpz_t rop, uint n )
Public Shared Sub mpz_fac_ui ( rop As mpz_t, n As UInteger )
public: static void mpz_fac_ui( mpz_t^ rop, unsigned int n )
static member mpz_fac_ui : rop : mpz_t * n : 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 = 3!. gmp_lib.mpz_fac_ui(rop, 3U); // 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 = 3!. gmp_lib.mpz_fac_ui(rop, 3UI) ' 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.