Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: plots with variation of arbitrary constant

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60362] Re: [mg60316] plots with variation of arbitrary constant
  • From: Renan <renan.birck at gmail.com>
  • Date: Wed, 14 Sep 2005 03:27:28 -0400 (EDT)
  • References: <200509131006.GAA09646@smc.vnet.net>
  • Reply-to: renan.birck at gmail.com
  • Sender: owner-wri-mathgroup at wolfram.com

On 9/13/05, Narasimham <mathma18 at hotmail.com> wrote:
> How to show 2D plots for chosen range of a constant?
> Show[Plot[Sin[x]+ c,{x,0,Pi}],{c,1,10,1}] does not work.

Try this, I guess this is what you wish to do:

In[1] := Table[Sin[x] + c, {c, 1, 10, 1}]
Out[1] := {1 + Sin[x], 2 + Sin[x], 3 + Sin[x], 4 + Sin[x], 5 + Sin[x],
6 + Sin[x],
  7 + Sin[x], 8 + Sin[x], 9 + Sin[x], 10 + Sin[x]}

In[2] := Plot[Evaluate[%],{x,0,Pi}]

Note that 'Evaluate' is essential.


  • Prev by Date: Re: plots with variation of arbitrary constant
  • Next by Date: Re: plots with variation of arbitrary constant
  • Previous by thread: Re: plots with variation of arbitrary constant
  • Next by thread: Re: plots with variation of arbitrary constant