![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
expm1() function in PHP
The expm1() function Returns e raised to the power x - 1 i.e
ex -1
Syntax
expm1(val)
Parameters
val − This is the power
Return
The expm1() function Returns e raised to the power x - 1
Example
<?php echo(expm1(0) . "<br>"); echo(expm1(1)); ?>
Output
0<br>1.718281828459
Let us see another example −
Example
<?php $val = 1; echo "e^", $val, "-1 = ", expm1($val); ?>
Output
e^1-1 = 1.718281828459
Advertisements