home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Actual 15
/
CDACTUAL15.iso
/
cdactual
/
program
/
pascal
/
NUMRPAS.ZIP
/
NRPAS13.ZIP
/
GAMMP.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1987-03-17
|
354 b
|
16 lines
FUNCTION gammp(a,x: real): real;
VAR
gammcf,gln: real;
BEGIN
IF ((x < 0.0) OR (a <= 0.0)) THEN BEGIN
writeln('pause in GAMMP - invalid arguments'); readln
END;
IF (x < (a+1.0)) THEN BEGIN
gser(a,x,gammcf,gln);
gammp := gammcf
END ELSE BEGIN
gcf(a,x,gammcf,gln);
gammp := 1.0-gammcf
END
END;