note 92176 deleted from function.bcpow by danbrown
| From: | danbrown@php.net | Date: | Mon, 13 Jul 2009 16:38:43 +0000 |
| Subject: | note 92176 deleted from function.bcpow by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158243@lists.php.net to get a copy of this message | ||
Note Submitter: thomas at tgohome dot com
----
<?php
/*
* Computes the base2 log using baseN log.
* @note Requires below functions.
* @author Thomas Oldbury.
* @license Public domain.
*/
function bclog2($a, $iter = 10)
{
return bcdiv(bcln($a, $iter) / bcln("2", $iter));
}
/*
* Computes the base10 log using baseN log.
* @note Requires below functions.
* @author Thomas Oldbury.
* @license Public domain.
*/
function bclog10($a, $iter = 10)
{
return bcdiv(bcln($a, $iter) / bcln("10", $iter));
}
?>