MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How can I plot the region satisfying an inequality?


Needs["Algebra`InequalitySolve`"];
Needs["Graphics`FilledPlot`"];

To find the region that satisfies the conditions use InequalitySolve:

InequalitySolve[x - y > 0 && x + y < 0, {x, y}]

x <= 0 && y < x || x > 0 && y < -x

Use FilledPlot to plot the results

plt1 = FilledPlot[{x, -10}, {x, -10, 0}, DisplayFunction -> Identity];
plt2 = FilledPlot[{-x, - 10}, {x, 0, 10}, DisplayFunction -> Identity];
Show[{plt1, plt2}, DisplayFunction -> $DisplayFunction];

Bob Hanlon

In a message dated 7/17/99 10:23:31 AM, elodger at my-deja.com writes:

>Is there a way to plot the region satisfying a set of inequalities,
>such as:
>
>x - y > 0 and
>x + y < 0
>
>on [-10, 10]
>


  • Prev by Date: Re: Re: Rudimentary Spell Checker
  • Next by Date: System Modelling with Mathematica
  • Previous by thread: How can I plot the region satisfying an inequality?
  • Next by thread: Re: How can I plot the region satisfying an inequality?