Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News Sign UpSign In
| Download
Views: 169
Image: ubuntu2004
Kernel: Python 3 (system-wide)
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.