expm1(): equivalent to 'exp(num) - 1'

<?Php
echo expm1(5); // Output 147.41315910258 
echo "<br>";
echo expm1(1); // Output 1.718281828459 
echo "<br>";
echo expm1(0); // Output is 0
echo "<br>";
echo expm1(-1); // Output is -0.63212055882856
echo "<br>";
?>
Syntax
float expm1(float X);
X is the input float number . We get output as exp(X) - 1

Math Functions LOG() function
Subhendu Mohapatra — author at plus2net
Subhendu Mohapatra

Author

🎥 Join me live on YouTube

Passionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.



Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
©2000-2025   plus2net.com   All rights reserved worldwide Privacy Policy Disclaimer