note 41870 deleted from function.pow by victor

From: Date: Tue, 16 Aug 2005 12:04:06 +0000
Subject: note 41870 deleted from function.pow by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93727@lists.php.net to get a copy of this message
Note Submitter: Matt AKA Junkie ---- Using pow(), a simplistic n-root function can be made. <? // precond: $n = n-root, $num = number to 'n-root' // postcond: returns $n-root of $num function n_root($n, $num) { return (float) pow($num, (1/$n)); // basic algebra } ?>

« previous php.notes (#93727) next »