Tan function

Category: Math

Summary

Tangent (radians).

Syntax

Returns a Double specifying the tangent of an angle.

Example

Example
This example uses the Tan function to return the tangent of an angle.
Dim MyAngle, MyCotangent
MyAngle = 1.3 ' Define angle in radians.
MyCotangent = 1 / Tan(MyAngle) ' Calculate cotangent.

Microsoft Support Page

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

Back to Functions