exp2
exp2 is a mathematical function that returns the value of 2 raised to a given exponent. In mathematical notation it is written as exp₂(x) = 2ˣ. The function closely resembles the natural exponential function exp(x), which returns e raised to the power of x, but uses a base of two instead of the base e ≈ 2.71828.
In computational contexts exp2 is provided as a standard library routine in many programming languages. For
The domain of exp2 is all real numbers. For negative exponents the function yields fractional values: exp2(−1)
In information theory and computer science, exp2 often appears in formulas for calculating the number of states,