I have a quetion about the fit of data point with errors.
I have 5 values and errors of y and 5 values and errors of x.
These point follow the function y=a*x - b/x and I want to find the values of a and b.
In the forum I found another topic with a link to:
I created a TGraphErrors and I fitted with the my function, but I obtain, for a and b, the values of the initial condition.
This is the code:
TCanvas *c1 = new TCanvas(“c1”,“CLT”,200,10,700,500);
TGraphErrors *gr1 = new TGraphErrors(n,x,y,error_x,error_y);
TF1 *fit = new TF1(“fit”,"(*x) - (/x)",21000,27000);
Where is my error?