I am trying to fit some basic data to a complicated equation
- here are the data points:
data={{0.12, 488.919}, {0.14, 429.077}, {0.16, 360.357}, {0.18, 308.689}} ...
so on and the equation have got Hypergeometric2F1 f?nctions.
So to fit this data:
NonlinearModelFit[test,
f[a, \[Alpha], Vr, Vi, Elab], {a, \[Alpha], Vr, Vi}, {Elab}, MaxIterations -> 1000]
But I keep getting this error:
Roots::ivar: Elab_ is not a valid variable. >>
NonlinearModelFit::nrlnum: The function value {-10.+(91.1962 (1. -1. 2.71828^(4. Im[<<1>>])))/Pattern[1.,_],-0.2+(91.1962 (1. -1. 2.71828^(4. Im[<<1>>])))/Pattern[2.,_]} is not a list of real numbers with dimensions {2} at {a,\,Vr,Vi} = {1.,1.,1.,1.}. >>
NonlinearModelFit::nrlnum: The function value {-10.+(91.1962 (1. -1. 2.71828^(4. Im[<<1>>])))/Pattern[1.,_],-0.2+(91.1962 (1. -1. 2.71828^(4. Im[<<1>>])))/Pattern[2.,_]} is not a list of real numbers with dimensions {2} at {a,\,Vr,Vi} = {1.,1.,1.,1.}. >>
Does anyone know what I am doing wrong?
Please, help me. I'm about to go crazy