home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
NRPAS13
/
BESSY1.DEM
< prev
next >
Wrap
Text File
|
1991-04-29
|
552b
|
26 lines
PROGRAM d6r18(input,output,dfile);
(* driver for routine BESSY1 *)
VAR
i,nval : integer;
val,x : real;
txt : string[18];
dfile : text;
(*$I MODFILE.PAS *)
(*$I BESSJ1.PAS *)
(*$I BESSY1.PAS *)
BEGIN
glopen(dfile,'fncval.dat');
REPEAT readln(dfile,txt) UNTIL (txt = 'Bessel Function Y1');
readln(dfile,nval);
writeln(txt);
writeln('x':5,'actual':12,'bessy1(x)':13);
FOR i := 1 to nval DO BEGIN
readln(dfile,x,val);
writeln(x:6:2,val:12:7,bessy1(x):12:7)
END;
close(dfile)
END.