Return exp() - 1:
<?phpecho(expm1(0) . "<br>");echo(expm1(1) . "<br>");echo(expm1(10) . "<br>");echo(expm1(4.8) );?>The expm1() function returns exp(x) - 1.
expm1( x );
parameter | describe |
---|---|
x | Required. Specify index. |
Return value: | 'e' raised to the x power minus 1. |
---|---|
Return type: | Float |
PHP version: | 4.1+ |
PHP change log: | PHP 5.3: The expm1() function is available on all platforms. |