C++ Math exp2()The function computes the base - 2 exponential function of a given number. Suppose a number is 'x':SyntaxParameterx: It is the value of the exponent. Return valueIt returns, 2 raised to the power x. Example 1Let's see a simple example when the value of x is positive Output: Value of x is : 4 exp2(x) = 16 Example 2Let's see a simple example when the value of x is negative. Output: Value of x is : -2 exp2(x) = 0.25 Next TopicC++ Math Functions |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India