Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

316 SIN sine Purpose This calculates the sine of an angle. The angle must be expressed in radians rather than degrees – but you can convert from degrees to radians using the function RAD . Examples 120 Y=SIN(RAD(45)) 2340 value=SIN (1.56) Description A function giving the sine of its argument. The argument must be in radians. Syntax = SIN ( ) Associated keywords COS , TAN , ACS , ASN , ATN , DEG , RAD Demonstration program To draw a sine wave on the screen. 10 MODE 4 20 FOR X=0 TO 1280 STEP 4 30 DRAW X,500+500*SIN(X/50) 40 NEXT X