Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP expm1() Function

PHP expm1() Function

PHP Math Reference Manual PHP Math Reference Manual

Example

Return exp() - 1:

"); echo(expm1(1) . "
"); echo(expm1(10) . "
"); echo(expm1(4.8)); ?>

Run Example »


Definition and Usage

The expm1() function returns exp(x) - 1.


Syntax

expm1(

x

);

Parameters Description
x Required. Specifies the exponent.

Technical Details

Return Value: 'e' raised to x minus 1.
Return Type: Float
PHP Version: 4.1+
PHP Changelog: PHP 5.3: The expm1() function is available on all platforms.

PHP Math Reference Manual PHP Math Reference Manual