// to execute this code, do // root > .L MFunction.C+ // root > .x TestMFunction.C+ #include "TF2.h" #include "TMatrixD.h" #include "MFunction.h" #include "Riostream.h" void TestMFunction() { TF2* g00 = new TF2("g00", "x^2 - y", -1, 1, -1, 1); TF2* g01 = new TF2("g01", "2*x*y - 1", -1, 1, -1, 1); TF2* g10 = new TF2("g10", "sin(3*x) - y^2", -1, 1, -1, 1); TF2* g11 = new TF2("g11", "3*x - 7*y -2", -1, 1, -1, 1); MFunction m1; m1.SetFunctions(g00, g01, g10, g11); cout<<"Simple MFunction example:"<