(*  pochhammer_values.nb *)
(* *)
(*  Purpose: *)
(*    Evaluate the Pochhammer *)
(*    function at selected argument values, *)
(*    and write the data to a file. *)
(* *)
(*  Modified:  03 February 2006 *)
(*  Author:  John Burkardt *)

mvec={50,10,4000,10,18,4,98,1};
nvec = {0,1,1,2,3,4,3,7 };
fvec = {};
num = Length [ nvec ];

Do [ { m=mvec[[i]],n = nvec[[i]], f = Pochhammer[m,n] ,
fvec = Append [ fvec, f],
      Print["Poch[",m,",",n,"]=",f] },{i,1,num,1}]

fileout=OpenWrite["C:\\Documents and Settings\\burkardt\\Desktop\\Misc\\mathematica\\rising_factorial_values.txt"];
SetOptions[fileout,FormatType->TextForm];
Write[fileout,"#  rising_factorial_values.txt"];today=DateList[];Write[fileout,"#  Created on ",today];Write[fileout,"#"];
Write[fileout,"#  m  n  f"];
Write[fileout,"#"];
Do[{m=mvec[[i]];n=nvec[[i]];f=fvec[[i]];Write[fileout,m,"  ",n,"  ",f]},{i,1,num,1}];Close[fileout];