I am trying to fit a complex data with a complex function, with the real fitting parameters. I was trying to put there constraints like this, but I got error:
FindFit[data,{1-a/(b-x^2-I*c*x),{Element[{a,b,c},Reals]}},{a,b,c},x]
If I remove constraints, I get in general complex parameters.
x
s complex too? $\endgroup$