40 #include "RConfigure.h"
42 #ifdef R__HAS_MATHMORE
45 #error libMathMore is not available - cannot run this tutorial
55 using namespace ROOT::Math;
56 void exampleMultiRoot(
const char * algo = 0,
int printlevel = 1) {
57 ROOT::Math::MultiRootFinder r(algo);
60 TF2 * f1 =
new TF2(
"f1",
"[0]*(1-x)+[1]*y");
61 TF2 * f2 =
new TF2(
"f2",
"[0]*(y-x*x)");
62 f1->SetParameters(1,0);
63 f2->SetParameter(0,10);
65 ROOT::Math::WrappedMultiTF1 g1(*f1,2);
66 ROOT::Math::WrappedMultiTF1 g2(*f2,2);
69 r.SetPrintLevel(printlevel);