Return exp() - 1:
<?php
echo(expm1(0) . "<br>");
echo(expm1(1) . "<br>");
echo(expm1(10) . "<br>");
echo(expm1(4.8));
?>
Try it Yourself »
The expm1() function returns exp(x) - 1.
expm1(
x);
Parameter | Description |
---|---|
x | Required. Specifies the exponent |
Return Value: | 'e' raised to the power of x minus 1 |
---|---|
Return Type: | Float |
PHP Version: | 4.1+ |
PHP Changelog: | PHP 5.3 - expm1() is now available on all platforms |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!