CoCalc Public FilesFinding X intecepts.ipynbOpen with one click!
Author: Kaleb Cruz
Views : 61
Compute Environment: Ubuntu 20.04 (Default)
In [6]:
y = 0 b = input("Please input b") m = input("Please input m") b = int(b) m = int(m) x = (y - b)/m print(x)
Please input b
Please input m
-0.75

This shows how to calculate the x intercept of any equation. It includes an option to test out as many possible b and m combinations as one would like to. I took the feed back that Y = 0 is assumed since the x intercepts is where the line crosses the Y axis at 0.

In [ ]:
In [ ]:
In [ ]: