Message Boards Message Boards

GROUPS:

How to Plot an Inequality

Posted 9 years ago
2061 Views
|
4 Replies
|
2 Total Likes
|
Hello everyone!emoticon

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:  
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.. :/
POSTED BY: Kodi Hannon
4 Replies
Posted 9 years ago
Oh, ok, I got it!

..sorry

emoticon

Thanks a lot David!
POSTED BY: Kodi Hannon
Posted 9 years ago
Hi Kodi,
Perhaps I don't understand. The code block I posted produces this result:

POSTED BY: David Keith
Posted 9 years ago
emoticon

I still can't get it emoticon

(Also, I think I would need the conditions of the paramters (>0) and the probabilities)
POSTED BY: Kodi Hannon
Posted 9 years ago
RegionPlot:
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
POSTED BY: David Keith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract