(*  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 *)

xvec={1, 1/2, 9/2,9/2,9/2,10,10,29/4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5};
yvec = {6, 3, 0,1,2,2,5/2,3/4,
0, 1/4, 2/4, 3/4, 1, 5/4, 6/4, 7/4, 2, 9/4, 10/4 };
fvec = {};
num = Length [ xvec ];

Do [ { x=xvec[[i]],y = yvec[[i]], f = Pochhammer[x,y] ,
fvec = Append [ fvec, f],
      Print["Poch[",x,",",y,"]=",N[f,16]] },{i,1,num,1}]

fileout=OpenWrite["/Users/burkardt/public_html/math_src/test_values/pochhammer_values.txt"];
SetOptions[fileout,FormatType->TextForm];
Write[fileout,"#  pochhammer_values.txt"];today=DateList[];Write[fileout,"#  Created on ",today];Write[fileout,"#"];
Write[fileout,"#  x  y  f"];
Write[fileout,"#"];
Do[{x=xvec[[i]];y=yvec[[i]];f=fvec[[i]];Write[fileout,N[x,16],"  ",N[y,16],"  ",N[f,16]]},{i,1,num,1}];Close[fileout];