gmp_libmpn_perfect_power_p Method |
Namespace: Math.Gmp.Native
public static int mpn_perfect_power_p( mp_ptr sp, mp_size_t n )
Public Shared Function mpn_perfect_power_p ( sp As mp_ptr, n As mp_size_t ) As Integer
public: static int mpn_perfect_power_p( mp_ptr^ sp, mp_size_t n )
static member mpn_perfect_power_p : sp : mp_ptr * n : mp_size_t -> int
// Create multi-precision operand. mp_ptr s1p = new mp_ptr(new uint[] { 0xd4a51000, 0x000000e8 }); // Assert s1p is a perfect power. Assert.IsTrue(gmp_lib.mpn_perfect_power_p(s1p, s1p.Size) != 0); // Release unmanaged memory. gmp_lib.free(s1p);
' Create multi-precision operand. Dim s1p As New mp_ptr(New UInteger() { &Hd4a51000UI, &He8}) ' Assert s1p is a perfect power. Assert.IsTrue(gmp_lib.mpn_perfect_power_p(s1p, s1p.Size) <> 0) ' Release unmanaged memory. gmp_lib.free(s1p)
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.