MathGroup Archive 2011

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

Search the Archive

Re: Plot function with two arguments


On 2011-10-12 07:45:05 +0000, Momo K said:

> Hello,
>
> I want to plot the function f. It is defined as followed:
>
> f[x_, k_] := (k*x^2 - x)/(x - k)
>
> As you see, it takes two arguments. In fact it shall represent a family of
> curves, but I didn't find any way different to this to define one.
>
> My aim is to plot the function by plot firstly f[x, -3], then f[x, -2], f[x,
> -1], f[x, 0], ...
> Is there a way to do this automatically without typing every single function
> with k adjusted. I imagined something like {{x,-20,20}, {k,-3,3}} or so.
>
> Many thanks
> and best regards
>
> Momo

I'd suggest you have a look at the table command




  • Prev by Date: DiagonalizableQ
  • Next by Date: Re: Taking the Arg of a complex number
  • Previous by thread: Re: Plot function with two arguments
  • Next by thread: Re: Plot function with two arguments