File: trig.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clg
fastgraphics
for x = 1 to 4 * 3.14159 step 0.05
y = sin(x)
plot int(20*x), 150 + int(30*y)
next x

refresh

for x = 1 to 4 * 3.14159 step 0.05
y = cos(x)
plot int(20*x), 150 + int(30*y)
next x

refresh

for x = 1 to 4 * 3.14159 step 0.01
y = tan(x)
plot int(20*x), 150 + int(30*y)
next x

refresh