Jump to: navigation, search

Php log1p

From w3cyberlearnings

Contents

PHP function log1p

This function calculates the value of X for more accurate when the X value closes to zero. This function is equal to log(1+X).

Syntax log1p

X is a number.

log1p(X)

Example 1

<?php

echo log1p(100);
echo "<br/>";
echo log1p(1000);
?>

Output

4.6151205168413
6.9087547793152


Related Links


Navigation
Web
SQL
MISC
References