File: forstep.gp

package info (click to toggle)
gp2c 0.0.11pl1-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,792 kB
  • sloc: ansic: 8,398; sh: 1,687; lex: 340; yacc: 215; makefile: 140
file content (19 lines) | stat: -rw-r--r-- 352 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
f(x)=
{
	forstep(y=7,x,[2,4,6,6,6,6,6,2,4,6,6],
		print (y));
	print("end");
	forstep(y=7,-34,-2,print(y));
	print("end");
	forstep(y=7,34,2,print(y));
	print("end");
}
g(x)=
{
	forstep(y=1,10*x,x,print(y));
	print("end");
}
h()=forstep(x=0,Pi,Pi/12,print(round(24*sin(x))))
k(v:vec,l)=forstep(x=0,l,v:vec,print(x))
l()=forstep(x=0,1,1/12,print(x^2))