- #1

P3X-018

- 144

- 0

Is it possible to make a least squares fit with a function given implicitly, because the equation isn't solveable analyticly? Because I had the coupled ODE,

[tex]\ddot{x} = \omega^2x + 2\omega\dot{y} - C\,\frac{\dot{x}}{\dot{r}}[/tex]

[tex] \ddot{y} = \omega^2y - 2\omega\dot{x} - C\,\frac{\dot{y}}{\dot{r}} [/tex]

where [itex] \dot{r} = \sqrt{\dot{x}^2+\dot{y}^2}[/itex], and [itex] \omega [/itex] and

I can numerically solve this system and make a plot in x-y, but I also have some measurement data, so is there a way to make best fit of the "solution" to the data points? That is vary the 2 constants to make a best fit?

There are also the 4 initial conditions when solving this system of ODE, how will they be involved in this?

[tex]\ddot{x} = \omega^2x + 2\omega\dot{y} - C\,\frac{\dot{x}}{\dot{r}}[/tex]

[tex] \ddot{y} = \omega^2y - 2\omega\dot{x} - C\,\frac{\dot{y}}{\dot{r}} [/tex]

where [itex] \dot{r} = \sqrt{\dot{x}^2+\dot{y}^2}[/itex], and [itex] \omega [/itex] and

*C*are constants in time.I can numerically solve this system and make a plot in x-y, but I also have some measurement data, so is there a way to make best fit of the "solution" to the data points? That is vary the 2 constants to make a best fit?

There are also the 4 initial conditions when solving this system of ODE, how will they be involved in this?

Last edited: