MathGroup Archive 2007

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

Search the Archive

Re: beginner plot function with parameter


=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*)

???



  • Prev by Date: Replacement question
  • Next by Date: Re: Multi-core Support in Mathematica 5.2
  • Previous by thread: Re: beginner plot function with parameter
  • Next by thread: Re: beginner plot function with parameter