10 TRF1(std::string
name,std::string formula){
f=
new TF1(
name.c_str(),formula.c_str());}
11 double Eval(
double x) {
22 .constructor<std::string,std::string>()
34 r<<
"TRF1 <- rootr$TRF1";
35 r<<
"u <- new(TRF1,'dilog','TMath::DiLog(x)')";
36 r<<
"print(u$Eval( 0.0 ))";
#define LOAD_ROOTR_MODULE(NAME)
ROOT R was implemented using the R Project library and the modules Rcpp and RInside
static TRInterface & Instance()
static method to get an TRInterface instance reference