FutureBasic Logo

<<    Index    >> FutureBasic

cos   function



Syntax
result = cos( expr )

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

Note
To find the cosine of an angle degAngle which is given in degrees, use the following:
  result = cos( degAngle * pi / 180.0 )
where pi is 3.141592654...

See also
acos; sin; tan