home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
nrpas
/
gammp.dem
< prev
next >
Wrap
Text File
|
1994-04-11
|
615b
|
30 lines
PROGRAM d6r6(input,output,dfile);
(* driver for routine GAMMP *)
VAR
a,val,x : real;
i,nval : integer;
txt : string[25];
dfile : text;
(*$I MODFILE.PAS *)
(*$I GAMMLN.PAS *)
(*$I GCF.PAS *)
(*$I GSER.PAS *)
(*$I GAMMP.PAS *)
BEGIN
glopen(dfile,'fncval.dat');
REPEAT readln(dfile,txt) UNTIL (txt = 'Incomplete Gamma Function');
readln(dfile,nval);
writeln(txt);
writeln('a':4,'x':11,'actual':14,'gammp(a,x)':14);
FOR i := 1 to nval DO BEGIN
readln(dfile,a,x,val);
writeln(a:6:2,x:12:6,val:12:6,gammp(a,x):12:6)
END;
close(dfile)
END.