Like all of my code the above is untested and comes with no warrenty implied or otherwise.use POSIX qw(ceil floor); if (ceil($num ** 1/3) == floor($num ** 1/3)) { print $num . " is a cube of " $num ** 1/3; } else { print $num . " is not a perfect cube."; }
In reply to Re^2: Which function for third root of number ?
by xorl
in thread Which function for third root of number ?
by Wampa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |