www.pudn.com > nurbs++3_0_10.zip > tstatistics.C
#include "../numerical/statistic.hh" #includeint main(){ using namespace PLib ; cout << "Testing the statistic package.\n" ; initStatistic(); int i ; for(i=0;i<10;++i){ cout << "!" << i << " = " << factorial (i) << " and ln !" << i << " = " << lnOfFactorial (i) << endl ; } cout << "The error function(0) = " << errorFcn (0) << endl ; cout << "The error function(0.2) = " << errorFcn (0.2) << endl ; cout << "The error function(0.5) = " << errorFcn (0.5) << endl ; cout << "The error function(1.0) = " << errorFcn (1.0) << endl ; cout << "The error function(2.0) = " << errorFcn (2.0) << endl ; }