//*********************************************************** // // section : NXV4 package // // code : test FxL package // // author : M. Dima // Inst. for Nuclear Phys. & Engr. // // date : NXV4 / Tue May 4 15:17:54 CEST 2017 // //*********************************************************** // #include #include #include #include #include #include "fxl.hh" using namespace std ; using namespace fxl4 ; //=========================================================== void fread(double* rr, double* cc, char* file, int N ) { double* z = new double[N] ; FILE* filex ; char stx[5000] ; float tx, x ; filex = fopen (file, "r") ; if (filex == NULL) {perror ("Error opening file") ;} for (int i=1; i> std::dec >> tx).fail()) ) { ;} if ( !((sty >> std::dec >> x).fail()) ) {z[i-1] = x ;} } long double ave = 0 ; for (int ii=0; ii V(rV,cV,N, 12, "F0 raw", 0.004, 800.0, 0.12, 0.54) ; for (int i=0; i L(rW,cW,N, 12, "F0 raw", 0.004, 800.0, 0.12, 0.54) ; for (int i=0; i