Previous Topic: ConcatenateNext Topic: Count


Cosine

The cosine functions return the cosine of a numeric value that represents an angle in either degrees or radians.

Syntax:

►►─┬─ COSD ───────────┬─ (value) ─────────────────────────────────────────────►◄
   ├─ COSDEG ─────────┤
   └─ COSINE-DEGREES ─┘

►►─┬─ COSR ───────────┬─ (value) ─────────────────────────────────────────────►◄
   ├─ COSRAD ─────────┤
   └─ COSINE-RADIANS ─┘

Invocation names:

COSD             COSR
COSDEG           COSRAD
COSINE-DEGREES   COSINE-RADIANS

Parameters:

(value)

Specifies the numeric value representing the angle, in degrees or radians, whose cosine is calculated.

Example:

This example calculates the cosine (in degrees) of 60:

compute 'Cosine' = cosd(60)

  COSINE = 5.000