When finding the line between two points, I've been using InterpolatingPolynomial
(which I know is probably overkill). I get an answer like the following:
Expand[InterpolatingPolynomial[{{4, -6}, {10, -7}}, x]]
-(44/7) + x/14
I would like this to be reformatted into standard form of a line, e.g. as the expression x-14y-88
.
In particular, my initial points are always integer pairs, so the output needed is Ax+By+C
where A
, B
, and C
are integers, (A
and B
relatively prime).
Is there a straightforward way to do this?
(Yes, I could do the math to figure out A
, B
, and C
explicitly, but the heart of my question is wondering if Mathematica has a built in way to convert its default explicit answers into an implicit format.)