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

abs

acos

acosh

asin

asinh

atan

atan2

atanh

base_convert

bindec

ceil

cos

cosh

decbin

dechex

decoct

deg2rad

exp

expm1

fdiv

floor

fmod

hexdec

hypot

intdiv

is_finite

is_infinite

is_nan

log

log10

max

min

octdec

pi

pow

rad2deg

round

sin

sinh

sqrt

tan

tanh

PHP

Home Menu