FutureBasic Logo

<<    Index    >> FutureBasic

cos   function

result = cos( expr )

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.

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