home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
printer
/
laser.arc
/
LOGASF.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1988-03-27
|
4KB
|
135 lines
Program Logasf;
{This program creates an Axis Specification File for log plots.}
Var
ASF_File: Text;
I,J: Integer;
Temp: Real;
Begin
Assign (ASF_file, 'logx.asf');
ReWrite(ASF_file);
Writeln(ASF_File, 'y'); { Redo x axis }
Writeln(ASF_File, 12); { labels on x axis. Note that only some of }
Writeln(ASF_File, '100000'); { these will be used. }
Writeln(ASF_file, '5');
Writeln(ASF_File, '10000');
Writeln(ASF_File, '4');
Writeln(ASF_File, '1000');
Writeln(ASF_File, '3');
Writeln(ASF_File, '100');
Writeln(ASF_File, '2');
Writeln(ASF_File, '10');
Writeln(ASF_File, '1');
Writeln(ASF_File, '1');
Writeln(ASF_File, '0');
Writeln(ASF_File, '0.1');
Writeln(ASF_File, '-1');
Writeln(ASF_File, '0.01');
Writeln(ASF_File, '-2');
Writeln(ASF_File, '0.001');
Writeln(ASF_File, '-3');
Writeln(ASF_File, '0.00001');
Writeln(ASF_File, '-4');
Writeln(ASF_File, '0.000001');
Writeln(ASF_File, '-5');
Writeln(ASF_File, '0.0000001');
Writeln(ASF_File, '-6');
Writeln(ASF_File, '108'); {tic marks on x axis}
For I:=-6 to 5 do
For J:=1 to 9 do
Begin
Temp := Exp(ln(10.0)*I) * J;
Writeln(ASF_File, ln(temp)/ln(10.0):10:6);
End;
Writeln(ASF_File, '108'); {grid marks for x axis}
For I:=-6 to 5 do
For J:=1 to 9 do
Begin
Temp := Exp(ln(10.0)*I) * J;
Writeln(ASF_File, ln(temp)/ln(10.0));
End;
Writeln(ASF_File, 'n'); { Redo y axis }
(*
Writeln(ASF_File, 12); { labels on y axis. Note that only some of }
Writeln(ASF_File, '100000'); { these will be used. }
Writeln(ASF_file, '5');
Writeln(ASF_File, '10000');
Writeln(ASF_File, '4');
Writeln(ASF_File, '1000');
Writeln(ASF_File, '3');
Writeln(ASF_File, '100');
Writeln(ASF_File, '2');
Writeln(ASF_File, '10');
Writeln(ASF_File, '1');
Writeln(ASF_File, '1');
Writeln(ASF_File, '0');
Writeln(ASF_File, '0.1');
Writeln(ASF_File, '-1');
Writeln(ASF_File, '0.01');
Writeln(ASF_File, '-2');
Writeln(ASF_File, '0.001');
Writeln(ASF_File, '-3');
Writeln(ASF_File, '0.00001');
Writeln(ASF_File, '-4');
Writeln(ASF_File, '0.000001');
Writeln(ASF_File, '-5');
Writeln(ASF_File, '0.0000001');
Writeln(ASF_File, '-6');
Writeln(ASF_File, '108'); {tic marks on y axis}
For I:=-6 to 5 do
For J:=1 to 9 do
Begin
Temp := Exp(ln(10.0)*I) * J;
Writeln(ASF_File, ln(temp)/ln(10.0):10:6);
End;
Writeln(ASF_File, '0'); {grid marks for y axis}
*)
Writeln(ASF_File, 'n'); { Redo z axis }
(*
Writeln(ASF_File, 12); { labels on z axis. Note that only some of }
Writeln(ASF_File, '100000'); { these will be used. }
Writeln(ASF_file, '5');
Writeln(ASF_File, '10000');
Writeln(ASF_File, '4');
Writeln(ASF_File, '1000');
Writeln(ASF_File, '3');
Writeln(ASF_File, '100');
Writeln(ASF_File, '2');
Writeln(ASF_File, '10');
Writeln(ASF_File, '1');
Writeln(ASF_File, '1');
Writeln(ASF_File, '0');
Writeln(ASF_File, '0.1');
Writeln(ASF_File, '-1');
Writeln(ASF_File, '0.01');
Writeln(ASF_File, '-2');
Writeln(ASF_File, '0.001');
Writeln(ASF_File, '-3');
Writeln(ASF_File, '0.00001');
Writeln(ASF_File, '-4');
Writeln(ASF_File, '0.000001');
Writeln(ASF_File, '-5');
Writeln(ASF_File, '0.0000001');
Writeln(ASF_File, '-6');
Writeln(ASF_File, '108'); {tic marks on z axis}
For I:=-6 to 5 do
For J:=1 to 9 do
Begin
Temp := Exp(ln(10.0)*I) * J;
Writeln(ASF_File, ln(temp)/ln(10.0):10:6);
End;
Writeln(ASF_File, '108'); {grid marks for z axis}
For I:=-6 to 5 do
For J:=1 to 9 do
Begin
Temp := Exp(ln(10.0)*I) * J;
Writeln(ASF_File, ln(temp)/ln(10.0));
End;
*)
Close(ASF_File);
End.