Go to the first, previous, next, last section, table of contents.
- Function: int mpz_root (mpz_t rop, mpz_t op, unsigned long int n)
-
@ifnottex
Set rop to the truncated integer part of the nth root of op.
Return non-zero if the computation was exact, i.e., if op is
rop to the nth power.
- Function: void mpz_sqrt (mpz_t rop, mpz_t op)
-
@ifnottex
Set rop to the truncated integer part of the square root of op.
- Function: void mpz_sqrtrem (mpz_t rop1, mpz_t rop2, mpz_t op)
-
@ifnottex
Set rop1 to the truncated integer part of the square root of op,
like
mpz_sqrt
. Set rop2 to
op-rop1*rop1,
(i.e., zero if op is a perfect square).
If rop1 and rop2 are the same variable, the results are
undefined.
- Function: int mpz_perfect_power_p (mpz_t op)
-
@ifnottex
Return non-zero if op is a perfect power, i.e., if there exist integers
a and b, with b > 1, such that op equals a raised to
b. Return zero otherwise.
- Function: int mpz_perfect_square_p (mpz_t op)
-
Return non-zero if op is a perfect square, i.e., if the square root of
op is an integer. Return zero otherwise.
Go to the first, previous, next, last section, table of contents.