MathGroup Archive 2007

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

Search the Archive

Re: Ploting solution sets to compound inequalites


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.
> 
> 



  • Prev by Date: Re: Paul Abbott Chebyshev Article
  • Next by Date: Want to 'Solve' a piecewise equation for a common term
  • Previous by thread: Ploting solution sets to compound inequalites
  • Next by thread: Re: Ploting solution sets to compound inequalites