Lesson goal: Graphing compound inequalities (y vs. x)

Previous: Graphing inequalities (xy-plane) | Home | Next: Throwing darts to find Pi

After this lesson, hopefully you see how easy it is for a computer to show you the collection of points on a cartesian coorinate system that satisfy an inequality. Typically after these, you move on to compound inequalities, which as you to find the collection of points that satisfy 2 or more inqualities.

This is once again, very straightfoward to do on a computer, with only a small "tweak" to the last lesson.

We again focus on the if statement, only instead of putting in a single inequality, we put in as many as we wish and join them with and or or statements, as discussed in this lesson.

Now you try. Put some inequality to test in the if statement.

Type your code here:

See your results here:

The code here will not run. But suppose as an example you want to find the region that satisfies $4y< x-6$ and $x+y>7$. What would you put in as the question to ask in the if statement? See the hint if you get stuck. 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.