NAME

cos - trigonometric cosine function

SYNOPSIS

v = cos(NumExpr)

DESCRIPTION

Cos returns the trigonometric cosine of its argument.  The argument may be any numeric expression.  Its value is assumed to be the radian measure of the angle whose cosine is to be returned. 

EXAMPLE

The program
	pi = 3.14159265
	degrees = 30
	radians = degrees * pi / 180
	print cos(radians)
produces
	.8660254263015284 
This example calculates the cosine of 30 degrees.  Note that the degree measure of the angle is converted to radian measure by multiplying by pi/180 before calling the cos function. 

SEE ALSO

sin, tan

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber