Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

log1p

Description

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

1

<?

$number = 0.01234;

$return = log1p($number);

echo $return;

?>
0.012264482819982
HomeMenu