Returns the cosine value of the specified angle.
cos( value )
measure value
value
Measure value specifying the angle whose cosine is returned.
This example displays a sinusoidal graph.
moveto(0,0) define(&i,integer,0) for(&i,1,10,360) lineto(cos(inttofloat((&i)/ 4)),sin(inttofloat(&i))) endfor() closepath()