Double_t myFunc(Double_t x) { return x*x+x+1.0 ; } void hammiu() { TF1 *f = new TF1("f", "myFunc(x)", 0, 100); f->Draw(); }