Taxidriver
Programmer
Hello,
I would like to write a function that, given two points, returns the cartesian equation of the line passing through the two points. In other words, the function should return something like y = ax + b that will be calculated using the formula (x-x1)(y2-y1) = (y-y1)(x2-x1).
How should "y" be defined?
Thank you.
I would like to write a function that, given two points, returns the cartesian equation of the line passing through the two points. In other words, the function should return something like y = ax + b that will be calculated using the formula (x-x1)(y2-y1) = (y-y1)(x2-x1).
How should "y" be defined?
Thank you.