MathGroup Archive 2011

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

Search the Archive

Re: Do command

  • To: mathgroup at smc.vnet.net
  • Subject: [mg120667] Re: Do command
  • From: "Dr. Wolfgang Hintze" <weh at snafu.de>
  • Date: Wed, 3 Aug 2011 07:05:55 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j18m27$slc$1@smc.vnet.net>

"DaleJenk" <dale.jenkins8 at deletegooglemail.com> schrieb im Newsbeitrag 
news:j18m27$slc$1 at smc.vnet.net...
> I'm working my way through the 1999 edition of Mathematica Navigator 
> and
> using Mathematica 7 Home Edition. The following command is supposed 
> to bring
> up a plot but for some reason it doesn't.
>
> Do[Plot[Sin[x - c], {x, 0, 4 Pi, Pi/10}, Ticks -> None], {c, 0,
>  2 Pi - Pi/10, Pi/10}]
>
> Thanks for any help.
>
>
>
Executing your command gives the error message

    Plot::"pllim" :"Range specification x, 0, 2 Pi, Pi/10} is not of 
the form {x, xmin, xmax}."
and it tells you what is wrong.

Correcting the error:

    Do[Plot[Sin[x - c], {x, 0, 4 Pi}, Ticks -> None], {c, 0, 2 Pi - 
Pi/10, Pi/10}]

you'll get what you want.

Regards,
Wolfgang





  • Prev by Date: Re: Do command
  • Next by Date: Re: Do command
  • Previous by thread: Re: Do command
  • Next by thread: Re: Do command