I can solve for a, b, c given three points for a parabola for example (1,1)(2,4)(3,9) but i need to create a program which returns a,b,c in the form:
$$y = ax^2 + bx + c$$
What is a formula that will find out a, b, c? Someone on another forum mentioned Lagrange but being a high school student i don't know much about Uni level physics. Also i can work with matrices if anyone has a matrix formula - but please explain your formulas as to why it works!
Any help appreciated!
Thanks, Itechmatrix
When you plug in the three points, you have three equations in three unknowns, where the unknowns are A,B,and C. Use matrix arithmetic to solve via simple program.
By Matrix, I mean using Cramer's rule.