From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- math/bevington/ppoiss.f | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 math/bevington/ppoiss.f (limited to 'math/bevington/ppoiss.f') diff --git a/math/bevington/ppoiss.f b/math/bevington/ppoiss.f new file mode 100644 index 00000000..4782fde8 --- /dev/null +++ b/math/bevington/ppoiss.f @@ -0,0 +1,23 @@ +c function ppoiss.f +c +c source +c Bevington, page 39. +c +c purpose +c evaluate poisson probability function +c +c usage +c result = ppoiss (nobs, averag) +c +c description of parameters +c nobs - number of items observed +c averag - mean of distribution +c +c subroutines and function subprograms required +c factor (n) +c calculates n factorial for integers +c + function ppoiss (nobs,averag) +1 ppoiss=((averag**nobs)/factor(nobs))*exp(-averag) + return + end -- cgit