PHP expm1() Function

Definition

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

Syntax

PHP expm1() Function has the following syntax.

expm1(number);

Parameter

ParameterIs Required Description
numberRequired. Set the exponent

Return

Item Description
Return Value 'e' raised to the power of x minus 1
Return Type Float

Example

Return 'e' raised to the power of x minus 1


<?php//w w w  . j  a v a  2  s.co  m
echo(expm1(0) . "\n");
echo(expm1(1) . "\n");
echo(expm1(10) . "\n");
echo(expm1(4.8). "\n");
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions