home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
sibdemo3.zip
/
SAMPLES.DAT
/
SAMPLES
/
PLOT2D
/
PLOT2D.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-08-07
|
898b
|
43 lines
Program plot2d;
{
Speedsoft Sibyl for OS/2
DEMO PROGRAM
July 1997
Author: Alex T. Vermeulen (atverm@xs4all.nl)
This program demonstrates some features of Sibyl:
-Printing
-Selecting Printers and setting parameters
-Graphing
-Timers
-Instantaneous screen updates after user selections
}
Uses
Forms, Graphics, XY, about;
{$r plot2d.scu}
var
t : longint;
Begin
Application.Create;
Application.CreateForm (TXYplot, XYPlot);
Application.CreateForm (TAboutForm, AboutForm);
getmem(xyplot.xdata,sizeof(double)*1000);
getmem(xyplot.ydata,sizeof(double)*1000);
xyplot.nrp:=1000;
for t:=1 to 1000 do
begin
xyplot.xdata^[t]:=t/5.0-100;
xyplot.ydata^[t]:=10.0*sin(t/1000.0*2*pi);
end;
AboutForm.ShowModal;
Application.Run;
Application.Destroy;
End.