Lesson goal: Plotting lines

Previous: Make it snow | Home | 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 m and b here and plot some lines!

Type your code here:

See your results here:

This code will not run. You have to fix the m= and b= lines to be set to a slope and a y-intercept first. Choose some values! How about 1 and -3? Dismiss.
Show a friend, family member, or teacher what you've done!

Here is a share link to your code:

Does your code work? Want to run it on your iPhone?

Here's your code:

  1. Use [Control]-[C] (Windows) or [⌘]-[C] (MacOS) to copy your code.

  2. Paste it using [Control]-[V] (Windows) or [⌘]-[V] (MacOS) into this page

  3. Then click the "Use on iPhone" button that you'll see.