Question: Write a Python program that uses the coordinates ( x , y ) of 2 points to find and display the equation of the line

Write a Python program that uses the coordinates (x,y) of 2 points to find and display the equation of the line y=mx+c that goes over the 2 given points. m is called the slope: m=y2-y1x2-x1
c is called y intercept. It can be obtained by substituting (x1,y1) or (x2,y2) in the equation of the line.
x1=1.5
y1=2.0
x2=-2.5
y2=-1.5
will give the following line equation: y=0.875x+0.6875
 Write a Python program that uses the coordinates (x,y) of 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!