C++ Math expm1()Last Updated : 17 Mar 2025 The function computes the exponential 'e' raised to the power a given number minus 1. Suppose a number is 'x'SyntaxNote: The return_type can be float, double or long double.Parameterx: It is the value of the exponent. Return valueIt returns 'e' raised to the power x minus -1. Example 1Let's see a simple example Output: Value of x is : 6 expm1(x) = 402.429 In this example, the value of x is 6. The expm1() function computes 'e' raised to the power 6 minus one. Example 2Let's see another simple example Output: Value of x is : 9.8 expm1(x) = 18032.7 In this example, value of x is 9.8. The expm1() function computes 'e' raised to the power 9.8 minus one. Next TopicC++ Math Functions |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India