Re: Ploting solution sets to compound inequalites
- To: mathgroup at smc.vnet.net
- Subject: [mg79734] Re: [mg79689] Ploting solution sets to compound inequalites
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Fri, 3 Aug 2007 06:23:30 -0400 (EDT)
- Reply-to: hanlonr at cox.net
RegionPlot[-2 < x < 3,
{x, -10, 10}, {y, -0.1, 0.1},
PlotStyle -> Red,
AspectRatio -> 0.02,
Frame -> True,
FrameTicks -> {Automatic, None}]
RegionPlot[x < -2 || x > 3,
{x, -10, 10}, {y, -0.1, 0.1},
PlotStyle -> Red,
AspectRatio -> 0.02,
Frame -> True,
FrameTicks -> {Automatic, None}]
You could use different colors to signify inclusion or exclusion of end points.
Bob Hanlon
---- Diana <diana.mecum at gmail.com> wrote:
> Math folks,
>
> How would I plot just an x-axis number line with the solution sets of:
>
> -2<x<3
>
> -2<=x<=3
>
> x<=-2 or x>=3
>
> x<-2 or x>3
>
> for example?
>
> Diana M.
>
>