I have this data:
data = {{290, 0.112089478}, {240, 0.072525194}, {220,
0.063863975}, {200, 0.075709626}, {170, 0.076462613}, {150,
0.070010656}, {130, 0.065390206}, {120, 0.064750065}, {100,
0.134944754}, {91, 0.257195474}, {78, 0.470626063}, {60,
0.45755743}, {40, 0.358068721}, {30, 0.307480383}};
and want to fit it using a function of this form:
a x ((4 Γ^2 + y^2)/y^6)
My only variable is x
, y
is a function of x
and the dependency is given implicitly by:
y == Sqrt[1 + β/y (1/(Exp[y/x] - 1) + 1/2 - y/2)]
The parameters that I want to fit are {a, Γ, β}
And this is what I have done so far:
fitfunc[a_?NumericQ, Γ_?NumericQ, β_?NumericQ, x_?NumericQ] :=
y /. FindRoot[
a x ((4 Γ^2 + y^2)/y^6) /.
{y == Sqrt[1 + β/y (1/(Exp[y/x] - 1) + 1/2 - y/2)]}, {y, 1.}
];
FindFit[data, fitfunc[a, Γ, β, x], {a, Γ, β}, x]
FindRoot[...]
part? Currently, there's an error - it seems like((4 Γ^2 + y^2)/y^6) /.
should go outside theFindRoot
expression $\endgroup$