MathGroup Archive 2002

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

Search the Archive

Re: problem with plot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33354] Re: [mg33327] problem with plot
  • From: Ken Levasseur <Kenneth_Levasseur at uml.edu>
  • Date: Sun, 17 Mar 2002 05:33:05 -0500 (EST)
  • References: <200203160640.BAA18375@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Puma:

The problem is that the 25 or so points that are used by Plot to
initially plot f miss the blip that happens near 0 on the second
plot.    Try something like this:

Plot[f[16 x], {x, -1, 1}, PlotPoints -> 100]

Ken Levasseur
UMass Lowell

puma wrote:

> Please try this:
> <<
> f[x_]:=0 /; x < 0 || x >= 1;
> f[x_]:=1 /; x >= 0 && x < 1/2;
> f[x_]:=-1 /; x >= 1/2 && x < 1;
> Plot[f[16 x],{x,0,1}];
> Plot[f[16 x],{x,-1,1}];
>
> Clear[f];
> >>
> why the curve disappear in the 2nd plot?
> only x-interval is changed!
> ?????



  • Prev by Date: Re: problem with plot
  • Next by Date: NextComposition - the bug?
  • Previous by thread: problem with plot
  • Next by thread: Re: problem with plot