X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Fcore%2Fomp%2F02_pi%2F00_pi_tools.h;fp=WCudaMSE%2FStudent_OMP%2Fsrc%2Fcpp%2Fcore%2Fomp%2F02_pi%2F00_pi_tools.h;h=d9757937fef6dde001675ff4b690db843597a42f;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h new file mode 100755 index 0000000..d975793 --- /dev/null +++ b/WCudaMSE/Student_OMP/src/cpp/core/omp/02_pi/00_pi_tools.h @@ -0,0 +1,28 @@ +#ifndef PI_TOOLS_H_ +#define PI_TOOLS_H_ + +#include + +using std::string; + +/*----------------------------------------------------------------------*\ + |* Declaration *| + \*---------------------------------------------------------------------*/ + +// ptr fonction de type double xxx(int n) +// ou xxx sera une methode de calcul de pi +typedef double (*AlgoPI)(int); + +/*--------------------------------------*\ + |* Methode *| + \*-------------------------------------*/ + +double fpi(double x); +bool isAlgoPI_OK(AlgoPI algoPI, int n, string title); + +#endif + +/*----------------------------------------------------------------------*\ + |* End *| + \*---------------------------------------------------------------------*/ +