REBOL 3 Docs Guide Concepts Functions Datatypes Errors
  TOC < Back Next >   Updated: 3-Aug-2010 Edit History  

REBOL 3 Functions: cosine

cosine  value  /radians

Returns the trigonometric cosine.

Arguments:

value [number!] - In degrees by default

Refinements:

/radians - Value is specified in radians

See also:

arccosine   arcsine   arctangent   sine   tangent  

Description

Ratio between the length of the adjacent side to the length of the hypotenuse of a right triangle.

print cosine 90
0.0
print (cosine 45) = (sine 45)
true
print cosine/radians pi
-1.0


  TOC < Back Next > REBOL.com - WIP Wiki Feedback Admin