Given the equation:
expr([ "*", X_COEFF, "x" ]) + expr([ "*", Y_COEFF, "y" ]) = EQUALS
What is the x
-intercept?
\Large{(}
X_INTERCEPT,\ 0\Large{)}
The x
-intercept is the point where the line crosses the x
-axis. This happens when y
is zero.
Set y
to zero and solve for x
.
expr([ "*", X_COEFF, "x" ]) + expr([ "*", Y_COEFF, 0 ]) = EQUALS
expr([ "*", X_COEFF, "x" ]) = EQUALS
(fractionReduce( 1, X_COEFF )) \cdot (X_COEFFx) = (fractionReduce( 1, X_COEFF )) \cdot (EQUALS)
x = X_INTERCEPT
This line intersects the x
-axis at (X_INTERCEPT, 0)
.