MathGroup Archive 1998

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

Search the Archive

Re: Problem plotting a piecewise function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14522] Re: [mg14502] Problem plotting a piecewise function
  • From: BobHanlon at aol.com
  • Date: Thu, 29 Oct 1998 04:33:19 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

In a message dated 10/23/98 11:30:49 PM, sergio at scisun.sci.ccny.cuny.edu
wrote:

>(*--
>   	Hello guys,
>
>   	Could somebody explain why in the following plot nothing is
>        drawn between x =(0,0.5)?
>   	How can I have the complete plot of this function?
>        Notice that f[0] = 1.0 and the y-axis tick mark gets up to
>        about 0.15
>---*)
>Clear[f,Xa,Xb];
>f[x_] := Which[x >= 0. && x <= 1.5, 0.888889 (-1.5 + x) (-0.75 + x),
>True, 0]; Xa=0.0; Xb=3.0;
> Plot[Evaluate[f[x]], {x,Xa,Xb}]

The default PlotRange suppresses that portion of the range.  Use the
Plot option:

	PlotRange -> All

and you will see the complete plot.

Bob Hanlon


  • Prev by Date: Can I get ComplexExpand to really work?
  • Next by Date: Linux: couldn't reach []{} with latin2 keyboard layout
  • Previous by thread: Re: Problem plotting a piecewise function
  • Next by thread: Re: Problem plotting a piecewise function