Return log(1+number) for different numbers in PHP
Description
The following code shows how to return log(1+number) for different numbers.
Example
//from w ww .j a v a 2 s . c o m
<?php
echo(log1p(2.7183) . "<br>");
echo(log1p(2) . "<br>");
echo(log1p(1) . "<br>");
echo(log1p(0));
?>
The code above generates the following result.