COS( ) |
Return Cosine |
COS(num[,ERR=stmtref])
num |
Numeric expression whose Cosine is to be returned. |
stmtref |
Program line number or statement label to which to transfer control. |
Note: |
Value between -1 and +1.
The COS( ) function returns the Cosine of the numeric expression. It returns a value between -1 and +1, rounded to the current PRECISION in effect. ACS( ) is its inverse function.
print 'CS'
X=0,Y=80
LASTX=0,LASTY=80
for I=-20 to 1 step .5
X=X+25
Y=50*cos(I)+80
print 'line'(LASTX,LASTY,X,Y)
LASTX=X
LASTY=Y
next