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.
- References:
- plots with variation of arbitrary constant
- From: "Narasimham" <mathma18@hotmail.com>
- plots with variation of arbitrary constant