Cos

Description

Calculates the cosine of an angle.

Syntax

Cos ( n )

Argument

Description

n

The angle (in radians) for which you want the cosine

Returns

Double. Returns the cosine of n. If n is null, Cos returns null.

Examples

Example 1

This statement returns 1:

Cos(0)

Example 2

This statement returns .540302:

Cos(1)

Example 3

This statement returns -1:

Cos(Pi(1))

See also