VBA Tan Function: The Tan function in VBA returns the tangent for the specified angle in radians.

Syntax

Parameter

Number (required) – This parameter represents the angle supplied in radiant that you want to calculate the tangent of.

Return

This function returns the tangent of a supplied angle in radians.

Example 1

Output

-1.995200412
0
-3.23109E-15
VBA Tan Function

Example 2

Output

1.61977519054386

VBA Tan Function

Example 3

Output        

1.73205080756887

VBA Tan Function

Pin It on Pinterest

Share This