Hi there(adsbygoogle = window.adsbygoogle || []).push({});

Suppose I have data of the format {x,y+i z} where x,y,z is real and i is the imaginary unit.

I'm trying to make a FindFit of some nasty model that, suppose for simplification is f(x) = a^b*x^2+exp(a)*b*i*x (domain is real, codomain is complex and a,b are Real) and can be written as f(x)= g(x) + i h(x). I want to FindFit to find "a" and "b" that makes f(x) best fit the data.

How can I do this? There is no way of constrain a and b to Real as FindFit don't allow that. Furthermore, it appears that FindFit don't accept imaginary data.

Thank you very much for your response

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# FindFit with complex domains

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**