You have N given points in plane and you have to find some a, b, c so that sum of |f(xi) - yi| will be minimum with i from 1 to N and f(x) = a * x * x + b * x + c.

I need an algorithm for this.

Thank you in advance

Printable View

- Nov 3rd 2009, 05:54 AMmg42Find closest parabola to given points in plane
You have N given points in plane and you have to find some a, b, c so that sum of |f(xi) - yi| will be minimum with i from 1 to N and f(x) = a * x * x + b * x + c.

I need an algorithm for this.

Thank you in advance