note 15472 deleted from function.pow by nlopess
| From: | nlopess@php.net | Date: | Sun, 22 Feb 2004 20:08:20 +0000 |
| Subject: | note 15472 deleted from function.pow by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-65551@lists.php.net to get a copy of this message | ||
Note Submitter: marcin@jackowski.net
----
to compute the exponent from given power and base
<?
$exp=3;
$base=2;
$power=pow($base,$exp);
print("$base raised to the power of $exp returns $power\n");
$exp2=log10($power)/log10($base);
print("if power of expression is $power and base is $base than the exponent is $exp2\n");
?>