PHP: log1p() function
Description
The log1p() function returns log(1+a), where a is a number, computed in a way that is accurate even when the value of a is close to zero.
Version:
(PHP 4 and above)
Syntax:
log1p(a)
Parameter:
Name | Description | Required / Optional |
Type |
---|---|---|---|
a | A number | Required | Float |
Return value:
log(1+a).
Value Type: Float.
See also
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/php/function-reference/log1p.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics