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
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