(*  arccosh_values.nb *)
(* *)
(*  Purpose: *)
(*    Evaluate the hyperbolic arccosine function *)
(*    at selected argument values, *)
(*    and write the data to a file. *)
(* *)
(*  Modified:  23 June 2007 *)
(*  Author:  John Burkardt *)

xvec = {1, 101/100,11/10, 12/10, 13/10, 14/10, 15/10, 2, 3, Pi, 4, 5, 10, 100, 1000};
fvec = {};
num = Length [ xvec ];

Do [ { x = xvec[[i]],f = ArcCosh[x],
fvec = Append [ fvec, f ],
      Print["  ArcCosh[",x,"]]=",N[f,20]] },{i,1, num,1}]

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