At 9/29/09 03:02 PM, IWantSomeCookies wrote:
basically i have 2 co-ordinates, and i need to like work out an equation that works out the rest of the graph?
I assume you want the equation of the line.
it's a linear graph, so these 2 co-ordinates are all i need, but i need help being pointed into the right directions..
oh and the co-ordinates are if anyone cares are:
0,100
455,-374
If you want to work out the answer, these are important.
So, you have two co-ordinates (0, 100) and (455, -374). Both follow the same (x, y) format so I'm going to call (0, 100); (x1, y1) and (455, -374); (x2, y2).
To work out the gradient of the line, you have to do y2 - y1 / x2 - x1. So that's 455 - 0 = 455 and -374 - 100 = -474. So the gradient is 455 / -474. That can't be simplified. Which is a little odd so I don't blame me if I'm wrong.
The process for working out the equation of a line is: y - y1 = m(x - x1).
So substitute the values in: y - 100 = 455/-474 (x - 0)
Multiply it out: y - 100 = 455/-474x - 0
Balance the equation: y = 455/-474x + 100
Equation of the line is y = 455/-474x + 100
I believe that's the equation of the line if I didn't go wrong anywhere.