Exp function

Category: Math

Summary

e raised to a power.

Syntax

Returns a Double specifying e (the base of natural logarithms) raised to a power.

Example

Example
This example uses the Exp function to return e raised to a power.
Dim MyAngle, MyHSin
' Define angle in radians.
MyAngle = 1.3
' Calculate hyperbolic sine.
MyHSin = (Exp(MyAngle) - Exp(-1 * MyAngle)) / 2

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/exp-function

Back to Functions