17 r<<
"x<-seq(0,2*pi,by=.1)";
18 r<<
"c1<-new(TCanvas,'c1','dlnorm')";
19 r<<
"u <-new(TGraph,length(x),x,dlnorm(x))" ;
22 r<<
"c2<-new(TCanvas,'c2','DiLog from TMath')";
23 r<<
"o<- new(TF1,'dilog','TMath::DiLog(x)',0,2*pi)";
26 r<<
"c3<-new(TCanvas,'c3','Custom')";
27 r<<
"i <- new(TF1,'f2','[0]*myFunc([1]*x)',0,2*pi)";
28 r<<
"i$SetRange(0,2*pi)";
29 r<<
"i$SetParameter(0,4)";
30 r<<
"i$SetParameter(1,pi/2)";
31 r<<
"print(i$Eval(0))";
32 r<<
"print(i$Eval(c(0,pi)))";
Double_t myFunc(Double_t x)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
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