array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.expm1.php', 1 => 'expm1', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Math Functions', ), 'prev' => array ( 0 => 'function.exp.php', 1 => 'exp', ), 'next' => array ( 0 => 'function.fdiv.php', 1 => 'fdiv', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/math/functions/expm1.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8)
expm1 —
Returns exp($num) - 1
, computed in a way that is accurate even
when the value of number is close to zero
expm1() returns the equivalent to
exp($
computed in a way that is
accurate even if the value of num
) - 1num
is near zero,
a case where exp($
would be
inaccurate due to subtraction of two numbers that are nearly equal.
num
) - 1
num
The argument to process
e
to the power of num
, minus one.