MathGroup Archive 2005

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

Search the Archive

Re: Graphing sets of linear inequalities

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53951] Re: [mg53910] Graphing sets of linear inequalities
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 5 Feb 2005 03:15:05 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Needs["Graphics`"];

InequalityPlot[-2<=x+2y<=4, 
    {x,-4,4}, {y,-4,4}];

FilledPlot[{-(2+x)/2, (4-x)/2},{x,-4,4},
    AspectRatio->Automatic];


Bob Hanlon

> 
> From: "DJ Craig" <spit at djtricities.com>
To: mathgroup at smc.vnet.net
> Date: 2005/02/04 Fri AM 04:11:04 EST
> To: mathgroup at smc.vnet.net
> Subject: [mg53951] [mg53910] Graphing sets of linear inequalities
> 
> How do you graph something like this:
> -2 = x + 2y = 4
> I need the areas where this is true to be shaded, and solid lines at x
> + 2y = -2 and x + 2y = 4.
> 
> 


  • Prev by Date: Re: Dotted line plot
  • Next by Date: Re: List Partition
  • Previous by thread: Re: Graphing sets of linear inequalities
  • Next by thread: Re: Graphing sets of linear inequalities