Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: beginner plot function with parameter

  • To: mathgroup at
  • Subject: [mg74030] Re: beginner plot function with parameter
  • From: Jens-Peer Kuska <kuska at>
  • Date: Wed, 7 Mar 2007 03:06:32 -0500 (EST)
  • References: <esjg3c$269$>


f[z_, s_] := (z/s)^2;
With[{s = 2},
   Plot[f[z, s], {z, -s, s}]


Wei Li wrote:
> 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

  • Prev by Date: Re: Re: Re: Re: fastest way to add
  • Next by Date: Mathematica demos
  • Previous by thread: Re: Write a computer program to using Simpson's rule
  • Next by thread: Re: beginner plot function with parameter