Jump to content

Futurebasic/Language/Reference/cos

From Wikibooks, open books for an open world

COS function

[edit | edit source]

Function

[edit | edit source]

✔ Appearance ✔ Standard ✔ Console

Syntax

[edit | edit source]

theCosine# = COS(expr)

Description

[edit | edit source]

Returns the cosine of expr, where expr is given in radians. The returned value will be in the range -1 to +1. COS always returns a double-precision result.

Note:
To find the cosine of an angle degAngle which is given in degrees, use the following:

   theCosine# = COS(degAngle * pi# / 180)

where pi# equals 3.14159265359

See Also

[edit | edit source]

ACOS
SIN
TAN