Re: beginner plot function with parameter
- To: mathgroup at smc.vnet.net
 - Subject: [mg74163] Re: beginner plot function with parameter
 - From: "dimitris" <dimmechan at yahoo.com>
 - Date: Tue, 13 Mar 2007 03:38:20 -0500 (EST)
 - References: <esjg3c$269$1@smc.vnet.net>
 
=CF/=C7 Wei Li =DD=E3=F1=E1=F8=E5:
> Dear Mathgroup,
>
> I am using mathematica 5 to plot a function with some parameter, I want to
> plot for example a simple parabolic function with positive parameter s:
>
> f[z_]:=(z/s)^2;
> Plot[f[z],{z,-s,s}];
>
> mathematica code doesn't seem to work, anyone can help?
>
> Thanks!
>
> Wei
In[1]:=
f[z_, s_] := (z/s)^2;
In[2]:=
g[s_] := Plot[f[z, s], {z, -s, s}, Axes -> False, Frame -> {True,
True, False, False}]
In[3]:=
g /@ Range[3];
(*plots to be displayed*)
???