MathGroup Archive 1998

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

Search the Archive

Re: Problem plotting a piecewise function


[This followup was posted to comp.soft-sys.math.mathematica and a copy 
was sent to the cited author.]

Hi Sergio,
it is because Mathematica by default tries to select a region of most 
interest in a plot.
Evaluate this to see that your function works properly:

Plot[
  Evaluate[f[x]], 
  {x,Xa,Xb},
  PlotRange->All, (*this turns off the mentioned default*)
  Frame->{True,True,False,False},
  Axes->False
  (*the Axes and Frame statements make it easier to see that f=0 for 
    x>1.5*)
]


For more details about this feature see Tom Wickham-Jones' "Mathematica 
Graphics", Telos, 1994.
Cheers,
Peter


  • Prev by Date: Thread and Set
  • Next by Date: Newton-Raphson Method
  • Previous by thread: Re: Problem plotting a piecewise function
  • Next by thread: Re: Problem plotting a piecewise function