note 92176 added to function.bcpow
| From: | thomas at tgohome dot com | Date: | Mon, 13 Jul 2009 07:23:38 +0000 |
| Subject: | note 92176 added to function.bcpow | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158220@lists.php.net to get a copy of this message | ||
<?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));
}
?>
----
Server IP: 87.124.35.190
Probable Submitter: 78.146.219.241
----
Manual Page -- http://www.php.net/manual/en/function.bcpow.php
Edit -- https://master.php.net/note/edit/92176
Del: integrated -- https://master.php.net/note/delete/92176/integrated
Del: useless -- https://master.php.net/note/delete/92176/useless
Del: bad code -- https://master.php.net/note/delete/92176/bad+code
Del: spam -- https://master.php.net/note/delete/92176/spam
Del: non-english -- https://master.php.net/note/delete/92176/non-english
Del: in docs -- https://master.php.net/note/delete/92176/in+docs
Del: other reasons-- https://master.php.net/note/delete/92176
Reject -- https://master.php.net/note/reject/92176
Search -- https://master.php.net/manage/user-notes.php