gmp_perfect_power()
function gmp_perfect_power(object|string|int $num): bool
Checks whether a GMP number is a perfect power.
Parameters:
$num(object|string|int)
Returns: bool
Availability
| Compiled (AOT) | Magician (eval) |
|---|---|
| Available | Available |
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how gmp_perfect_power is implemented in the compiler, see the internals page.