Solving some 'math' problems
Posted: Fri Jul 15, 2011 10:27 am
Here is the issue:
I have a set of x,y coordinates that plots a generic curve. What I need to do is determine additional x,y coordinates that are located midway between existing coordinates. For now I will assume that any three consecutive points are on a curve defines by the quadratic equation Ax^2 + Bx + C = y
starting with the three x,y values, how do I solve for the values A,B,C (programatically) so that I can insert a new x value and calculate its associated value(s) of y.
I will be doing this with PHP on the server side of a web connection.
Any assistance would be greatly appreciated!!
I have a set of x,y coordinates that plots a generic curve. What I need to do is determine additional x,y coordinates that are located midway between existing coordinates. For now I will assume that any three consecutive points are on a curve defines by the quadratic equation Ax^2 + Bx + C = y
starting with the three x,y values, how do I solve for the values A,B,C (programatically) so that I can insert a new x value and calculate its associated value(s) of y.
I will be doing this with PHP on the server side of a web connection.
Any assistance would be greatly appreciated!!