If your program is written in Excel's VBA, simply use Worksheetfunction.TTest
or Worksheetfunction.TDist.
Otherwise, you could use
http://www.math.sfu.ca/~cbm/aands/page_948.htm
or
http://www.library.cornell.edu/nr/bookcpdf/c6-4.pdf
AFAIK, the best double precision implementation in existence is in Ian
Smith's VBA code
http://members.aol.com/iandjmsmith/examples.xls
Jerry
> I need write function TTEst in my own program, which return value same TTEst
> in MSExcel.
[quoted text clipped - 7 lines]
> Best regard,
> Serg