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
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week