# How to Plot an Inequality

**URL:** <https://community.wolfram.com/t/how-to-plot-an-inequality/1761>\
**Category:** Questions\
**Tags:** mathematica, algebra, graphics-and-visualization\
**Created:** [March 20, 2014, 6:24pm UTC](https://community.wolfram.com/t/how-to-plot-an-inequality/1761 "2014-03-20T18:24:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![baudinz](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@baudinz](https://community.wolfram.com/u/baudinz)\
**Post date:** [March 20, 2014, 6:24pm UTC](https://community.wolfram.com/t/how-to-plot-an-inequality/1761/1 "2014-03-20T18:24:18Z")

</div>

Hello everyone!🙂

I would kindly need some help for this:

How can I plot in mathematica the graphic solution for: -(T+q) z + (1-T-q) r \< -z / 2 ?

where T and q are probabilities 0\<T\<1 and 0\<q\<1, and r \>0 and z\>0 positive parameters

I tried:

```auto
ParametricPlot3D[-(T + q) z + (1 - T - q) r < -(z / 2) && 0 < T < 1 &&
0 < q < 1, && r > 0 && z > 0, {B, 0, 1}, {p, 0, 1}]

```

But doesn’t work.. 😕

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [March 20, 2014, 7:06pm UTC](https://community.wolfram.com/t/how-to-plot-an-inequality/1761/2 "2014-03-20T19:06:37Z")

</div>

RegionPlot:

```auto
plotRegion[r_, z_] := 
 RegionPlot[-(t + q) z + (1 - t - q) r < -z/2, {t, 0, 1}, {q, 0, 1}, 
  FrameLabel -> {"t", "q"}, PlotLabel -> "-(t+q) z+(1-t-q) r<-z/2"]

```

Best regards,  
David

---

<div class="post-metadata">

**Author:** ![baudinz](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@baudinz](https://community.wolfram.com/u/baudinz)\
**Post date:** [March 20, 2014, 7:31pm UTC](https://community.wolfram.com/t/how-to-plot-an-inequality/1761/3 "2014-03-20T19:31:12Z")

</div>

☹

I still can’t get it ☹

(Also, I think I would need the conditions of the paramters (\>0) and the probabilities)

---

<div class="post-metadata">

**Author:** ![dlkeith](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/dlkeith/32/31494_2.png) [@dlkeith](https://community.wolfram.com/u/dlkeith)\
**Post date:** [March 20, 2014, 8:20pm UTC](https://community.wolfram.com/t/how-to-plot-an-inequality/1761/4 "2014-03-20T20:20:02Z")

</div>

Hi Kodi,  
Perhaps I don’t understand. The code block I posted produces this result:

 ![6409temp.png](https://global.discourse-cdn.com/wolfram/original/3X/3/6/36c3a294d4130b18ae28f392f2ac8c07a9c8ebee.png)

---

<div class="post-metadata">

**Author:** ![baudinz](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@baudinz](https://community.wolfram.com/u/baudinz)\
**Post date:** [March 23, 2014, 5:33pm UTC](https://community.wolfram.com/t/how-to-plot-an-inequality/1761/5 "2014-03-23T17:33:11Z")

</div>

Oh, ok, I got it!

..sorry

🙂

Thanks a lot David!
