How to use expm1 in PHP

This article describe about expm1() Function in PHP.
  • 1193

expm1() Function

This function return the Ex -1 value. Where E is a Euler constant and x is passed number.

Syntax

expm1(x)

 

Parameter Description
x define a number.

Example

<html>
<body>
<?php
echo(expm1(2) . "<br />");
echo(expm1(-2) . "<br />");
echo(expm1(6) . "<br />");
echo(expm1(12))
?>
</body>
</html>

 

Output


expm1php.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.