Cos function

Category: Math

Summary

Cosine of an angle (radians).

Syntax

Returns a Double specifying the cosine of an angle.

Example

Example
This example uses the Cos function to return the cosine of an angle.
Dim MyAngle, MySecant
MyAngle = 1.3 ' Define angle in radians.
MySecant = 1 / Cos(MyAngle) ' Calculate secant.

Microsoft Support Page

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

Back to Functions