Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Views: 151
Image: 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