-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestscrg.pas
28 lines (25 loc) · 855 Bytes
/
testscrg.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Program scriptgen;
const
Funccount = 36;
Functions : Array[1..funccount] of String[10]
= ('ASIN','ARCSIN','ACOS','ARCCOS','ATAN','ARCTAN','SIN',
'COS','TAN','COT','SEC','COSEC','NEG','LN','LOG',
'EXP','TRUNC','ABS','ROUND','SQR','DEG','SQRT','SINH',
'COSH','TANH','ARCSINH','ARCTANH','ARCCOSH','ASINH',
'ATANH','ACOSH','SECH','COSECH','CSCH','COTH','CSC');{}
maxcolor = 255;{Set to 16 under turbo pascal or gm = 9}
var
lr : Text;
i : integer;
Begin
Assign(lr,'testscr.srp');
Rewrite(lr);
Writeln(lr,'GRAPHSCRIPT');
Writeln(lr,'CLS');
For i := 1 to funccount do
Begin
Writeln(lr,'C ',(i mod maxcolor+1));
Writeln(lr,'P ',functions[i],'(X)');
End;
Close(lr);
End.