@nevware21/ts-utils
    Preparing search index...

    Function mathExp

    The mathExp() function returns e raised to the power of a number, where e is Euler's number, the base of natural logarithms.

    0.12.0

    A number representing the power to which e is raised

    The value of e^x, where e is Euler's number and x is the argument

    mathExp(0); // 1
    mathExp(1); // 2.718281828459045 (approximately e)
    mathExp(2); // 7.38905609893065 (approximately e^2)
    • Returns e (the base of natural logarithms) raised to a power.

      Parameters

      • x: number

        A numeric expression representing the power of e.

      Returns number