I need to fit an implicitly defined curve. I thought I could get some data out of Solve
, and then using FindFit
.
Therefore, I would like to find the relation the parametric curve defined by $F(x,y)=0$:
Solve[-(1/2) + 1/2 (0.41202 BesselK[0, 0.1 Sqrt[x^2 + y^2]] +
(0.101483 x BesselK[1, 0.1 Sqrt[x^2 + y^2]])/Sqrt[x^2 + y^2]) == 0, y]
But I can't get an output:
Solve was unable to solve the system with inexact coefficients or the system obtained by direct rationalization of inexact numbers present in the system. Since many of the methods used by Solve require exact input, providing Solve with an exact version of the system may help. >>
Edit:
In particular, I would like to fit the data coming from the curve with the expression of another curve, and not with a function $f(x)$. In particular, since this clearly looks like a cardioid, I would like it to fit to something like it.
What other strategies could I try?
providing Solve with an exact version of the system
" means using fractions instead of decimals, and the functionRationalize
turns a decimal expression into one with fractions. However, Mathematica still can't solve the equation in this case. $\endgroup$FindFit
(or whatever you want to use) to adjust. $\endgroup$