Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
204 views
ubuntu2004
Kernel: Python 3 (system-wide)

Since we need to find x-intercept from y=mx+b, we will use x:=(y-b)/m. Input variables m and b Example 1:

m=3 b=7 print((f"x=(y-{b})/{m}"))
x=(y-7)/3

Example 2:

m=5 b=2 print((f"x=(y-{b})/{m}"))
x=(y-2)/5

Example 3:

m=7 b=8 print((f"x=(y-{b})/{m}"))
x=(y-8)/7