Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5605

Plot function with two arguments

From Momo K <momok1994@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Plot function with two arguments
Date 2011-10-12 07:45 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j73gi1$ftj$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Plot function with two arguments Momo K <momok1994@googlemail.com> - 2011-10-12 07:45 +0000
  Re: Plot function with two arguments Max Böhring <texuser@arcor.de> - 2011-10-13 07:48 +0000
  Re: Plot function with two arguments David Skulsky <edskulsky@gmail.com> - 2011-10-13 07:53 +0000

csiph-web