MathGroup Archive 2001

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

Search the Archive

Re: Graphing Functions for an idiot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg27268] Re: Graphing Functions for an idiot
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Fri, 16 Feb 2001 03:58:18 -0500 (EST)
  • References: <96asca$6f6@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Plot[x^3-3x, {x,-2,2}]

We could use an intermediate step:

expr= x^3-3x;
Plot[expr, {x,-2,2}]

Or define a function using

f[x_]:=x^3-3x

Then use

Plot[f[x], {x,-2,2}]

Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565

"nsnn" <mailto:dontreply at tothis.ok> wrote in message
news:96asca$6f6 at smc.vnet.net...
> Hi, It's Idiot Here....
>
> After spending an afternoon with the Mathematica Book, 4th Ed. by S.W. I
> have found that I must be an official Idiot because I cannot figure out
how
> to do simple graphing of functions.
>
> Could someone please help me - step by step - realizing that you are
> instructing an idiot who -tried- figuring this out from the book - to
graph
> simple functions.
>
> Here is an example of what I am looking for:
>
> Graph the function f(x)=x^3-3x
>
> I read the section on the command "Plot" and no matter what I do I either
> get a graph that doesn't represent the function I am trying to graph or
> errors.
>
> Thanks in Advance!
>
> -rp
>
>




  • Prev by Date: Limit[ Sign[],x->Infinity ]
  • Next by Date: numerics
  • Previous by thread: RE: Graphing Functions for an idiot
  • Next by thread: Re: Graphing Functions for an idiot