Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v2 n11 (Volume 2, Issue 11)
Date: November 1981
Pages: 16
Use these lines in 4K programs requiring sines between 0 and 90 degrees. X is the angle; S is its sine. This equation produces error less than 2E-03.
LET S=(179*X-((((251*X)/100)*X)/10)-((((((56*X)/20)*X)/100)*X)/5))/10
IF X>35 AND X<65 THEN LET S=S+2
PRINT "SIN ";X;" DEG= ";S; " E-03"
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.