MathGroup Archive 2000

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

Search the Archive

Re: Plots with Variable Limits?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24121] Re: Plots with Variable Limits?
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Wed, 28 Jun 2000 02:11:42 -0400 (EDT)
  • References: <8j9djn$51e@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Two suggestions

f[r_, a_] := Sin[a r + r];

Unevaluated[Plot[ f[x, a], {x, -2a, 2a} ]] /. a -> 3


With[{a = 3}, Plot[ f[x, a], {x, -2a, 2a} ] ]

--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"A. E. Siegman" <siegman at stanford.edu> wrote in message
news:8j9djn$51e at smc.vnet.net...
> I want to make a test plot of a function  f[x,a]  versus  x  for some
> trial value of the parameter  a  without fixing that parameter for
> subsequent cells, e.g. something like
>
>    Plot[ f[r,a], {x,-2a,2a} ]  /.  a->10
>
> If I try this, Mathematica gives me a  "Plot::plln"  error -- but then
> goes ahead and makes the correct plot anyway.
>
> I can of course turn off the error -- but what's a better, but still
> clean and simple, way to accomplish this.
>
> Thanks   siegman at stanford.edu
>




  • Prev by Date: Re: Plots with Variable Limits?
  • Next by Date: RE: Plots with Variable Limits?
  • Previous by thread: Re: Plots with Variable Limits?
  • Next by thread: RE: Plots with Variable Limits?