Show some basic primitives.
"My first ROOT interactive session","br");
t.
DrawText(2,20.3,
"ROOT is based on CINT, a powerful C/C++ interpreter.");
t.
DrawText(2,19.3,
"Blocks of lines can be entered within {...}.");
t.
DrawText(2,18.3,
"Previous typed lines can be recalled.");
t.
DrawText(3,17,
"Root > float x=5; float y=7;");
"Root > for (int i=2;i<7;i++) printf(\"sqrt(%d) = %f\\n\",i,sqrt(i));");
t.
DrawText(3,10,
"Root > TF1 f1(\"f1\",\"sin(x)/x\",0,10)");
t.
DrawText(4,13.3,
"sqrt(2) = 1.414214");
t.
DrawText(4,12.7,
"sqrt(3) = 1.732051");
t.
DrawText(4,12.1,
"sqrt(4) = 2.000000");
t.
DrawText(4,11.5,
"sqrt(5) = 2.236068");
t.
DrawText(4,10.9,
"sqrt(6) = 2.449490");
TPad *pad =
new TPad(
"pad",
"pad",.2,.05,.8,.35);
TF1 *
f1 =
new TF1(
"f1",
"sin(x)/x",0,10);
}
- Author
- Rene Brun
Definition in file first.C.