English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

The expm function in PHP1Function ()

expm1) function returns e raised to the power of x-1, that is

ex -1

Syntax

expm1(val)

parameter

  • val-This is power

returns

expm1) function returns e raised to the power of x-1

Example

<?php
   echo(expm1(0) . "<br>";
   echo(expm1(1));
?>

Output Result

0<br>1.718281828459

Let's look at another example-

Example

<?php
   $val = 1;
   echo "e^", $val, ""-1 = "", expm1($val);
?>

Output Result

e^1-1 = 1.718281828459