The Slope Intercept form of a Line utility provides the slope-intercept form of a line based on the value of two points (x1 , y1 and x2 , y2).
INSTRUCTIONS: Enter the following:
Slope Intercept form of a Line: The utility returns a string with the slope-intercept form of the line.
The slope intercept form gives the equation of a line, using the slope (m) and a point on the y-axis (b) as follows:
y = mx + b
The algorithm looks for the following special cases:
With the slope and intercept (b) from the slope intercept formula, you can enter any value of x and get the corresponding value of y on the line.