% file name: Poisson_prob.m
% the program asks the user to enter the values 
% of lambda and t and returns p(k).
%
% created June. 18, 2000, F. Elguibaly
%
lambda = input('Enter the value of lambda please:');
t = input('Enter the value of t please: ');
k = input('Enter the value of k please: ');

p_poisson = (lambda*t)^k * exp(-lambda*t)...
   * factorial(k)