Arrrghhh, I figured it out!!!!
sync on
for i# = 1.0 to 360.0
print i#," ",cos(i#)," ",cosrad(i#)
sync: wait key
next i
end
function CosRad(argument#)
result# = argument# * 3.141592653589793 / 180.0
ENDFUNCTION result#
I confirmed the results here
http://www.rkm.com.au/calculators/CALCULATOR-radians-sine-cosine-tan.html
Correction!
The actual function should look like this.
function CosRad(argument#)
b# = argument# * 57.29577951308233
result# = cos(b#)
ENDFUNCTION result#
The angle in degrees parameter (argument#) is converted to angle in radians (b#) then you find the cosine and return the result#.
The multiplier of 57.295.... is the equivalent of 180.0 / 3.141592653589793
CSL