Skip to content

Find Linear Equation

Jackkillian edited this page Jan 12, 2023 · 1 revision

Find Linear Equation

Takes 2 points and outputs a linear equation that lies on all of them, if possible.

Input

2 Points:

  • (A, B): point 1
  • (X, Y): point 2

Output

Outputs the following values:

  • The linear equation in point-slope form
  • The linear equation in slope-intercept form
  • The slope of the line
  • The x-intercept of the line
  • The y-intercept of the line

The program will graph the equation once you press enter.

Clone this wiki locally