Hi folks, I get the following error.. Error: Symbol nan is not defined in current scope FILE:EPTPC_mod.C LINE:120 *** Interpreter error recovered *** The code is given below.. ..... auto_ptr<ofstream> out( new ofstream(op_file)); ... ... // Define TGraph to fit a line thro data.. TGraphErrors *Line = new TGraphErrors(nlines,Rad,Ephi,Err_rad,Err_phi); Line->Fit("pol1","Ql","ep"); pol1->GetParameters(parm); perr[0] = pol1->GetParError(0); perr[1] = pol1->GetParError(1); cal_eta = parm[0] + parm[1] * 1693.09; // Some formatting for output out->setf(ios::scientific,ios::floatfield); out->setf(ios::showpos); out->precision(4); out->width(18); *out << perr[0] + perr[1] << endl; <------------------------ This is where it is bombing.. Can anybody help? I guess there must be some function in the math library to check not-a-number .. like IsNaN() or something.. Venkat
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET