Visual Basic for Applications Reference

Exp Function 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