-
-
Save parzibyte/f4f024889c9d1c216aade95af4945dad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Raíz cúbica en PHP | |
https://parzibyte.me/blog | |
*/ | |
function raiz_cubica($numero){ | |
return pow($numero, 1/3); // Elevar número a la potencia 0.333333333 | |
} | |
$numero = 27; | |
$raiz = raiz_cubica($numero); | |
echo "La raíz cúbica de $numero es $raiz"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment