Fitting Question

Hi, I`ve defined a function as follows.

TF1* myfunc=new TF1(“myfunc”,"[0]+[1]*pow(x,[2])");

Now when I try fitting a histogram (for example) with 1 entry at 1, 4 entries at 2, 9 entries at 3, etc, I do NOT get [2]=2 as I would expect.

I cant see why this would be, any ideas?


Sorry, I seem to have fixed the issue.

I should remember to just try quitting root and restarting if something wierd is going on.