Home Menu

log1p

Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero

Syntax

log1p ( float $number ) : float

Parameters

number

The argument to process

Return

log(1 + number)

Examples

<?

$number = 0.01234;

$return = log1p($number);

echo $return;

?>
0.012264482819982

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms