Lesson goal: Plotting lines
Previous: Make it snow
| Next: Graph the absolute value
After plotting points in your math class, you often move to plotting lines. The "slope-intercept"
form of a line is $y=mx+b$, where $m$ is the slope of the line and $b$ is the y-intercept.
Now you try. Set the
b here and plot some lines!
Type your code here:
This code will not run. You have to fix the
lines to be set to a slope and a y-intercept first. Choose some values! How about 1 and -3?
Does your code work? Want to run it on your iPhone?
Here's your code:
- Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.
- Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into
- Then click the "Use on iPhone" button that you'll see.