Notes and Code | Outcome |
---|---|
SlopeThe slope of the line is the change in y divided by the change in x: slope=ΔyΔx |
⇨
|
InterceptFinding the intercept requires a little algebra. Since the general equation for a straight line is: y=mx+b where: m=slope b=intercept so to find the intercept we solve this equation for b: y−mx=b therefore, b=y−mx since we already calculated the slope (m), and we know the x and y values of at least one point, we can substitute in the values: x=x1 y=y1 to get: b=y1−mx1 |
⇨
|
Exercise: Draw a graph showing the two points and the line between them, then extend the line to the boundaries of your graph.
|
|