Question
For the following problem we want to find a linear equation that passes through the following two points: (-5,8), (7,-9). The general equation for a
For the following problem we want to find a linear equation that passes through the following two points:
(-5,8), (7,-9). The general equation for a line is: y = mx + b
a Create two symbolic variables, m and b. Looking at the general equation above, we can subtract
y from both sides to get the following expression: 0 = mx + b -y. Now that our equation is in this
format, we can create two equations, eqn1 and eqn2 using the two (x,y) coordinates given above.
Use the solve function to solve the system of equations. Call these solutions sol m and sol b.
Plot the solution of the line that passes through the two points (create the line using sol m and sol b and define a new symbolic variable, ). Label the axes and give the plot a title.
Change the line to a magenta dash-dotted line and limit both and y axes from - 10 to 10
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started