gmp_libmpz_tdiv_ui Method |
Namespace: Math.Gmp.Native
public static uint mpz_tdiv_ui( mpz_t n, uint d )
Public Shared Function mpz_tdiv_ui ( n As mpz_t, d As UInteger ) As UInteger
public: static unsigned int mpz_tdiv_ui( mpz_t^ n, unsigned int d )
static member mpz_tdiv_ui : n : mpz_t * d : uint32 -> uint32
// Create, initialize, and set the value of n to 10000. mpz_t n = new mpz_t(); gmp_lib.mpz_init_set_si(n, 10000); // Assert that returned value is |n - 3 * trunc(n / 3)|. Assert.IsTrue(gmp_lib.mpz_tdiv_ui(n, 3U) == 1U); // Release unmanaged memory allocated for n. gmp_lib.mpz_clear(n);
' Create, initialize, and set the value of n to 10000. Dim n As New mpz_t() gmp_lib.mpz_init_set_si(n, 10000) ' Assert that returned value is |n - 3 * trunc(n / 3)|. Assert.IsTrue(gmp_lib.mpz_tdiv_ui(n, 3UI) = 1UI) ' Release unmanaged memory allocated for n. gmp_lib.mpz_clear(n)
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.