MathGroup Archive 2002

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

Search the Archive

Re: Stupid newbie question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33177] Re: [mg33134] Stupid newbie question
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Wed, 6 Mar 2002 01:56:24 -0500 (EST)
  • References: <200203050808.DAA17076@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Some of your parentheses are incorrect: [] is for functions, () is for
grouping, {} is for lists. Other than that, I guess you should write f[x]
instead of just f in your Plot command:

In[1]:=
Clear[a, b, f];
f[x_] := 1 - Cos[E^((3*x)/4)];
{a, b} = {-1, 1.5};
c = Plot[f[x], {x, a, b}];

works all right.

Tomas Garza
Mexico City
----- Original Message -----
From: "Mike O'Leary" <Gremmie at cinci.rr.com>
To: mathgroup at smc.vnet.net
Subject: [mg33177] [mg33134] Stupid newbie question


> I can't seem to get a Plot working.  I have all this typed in the
notebook:
>
> Clear[a, b, f]
> f[x_] := 1 - (Cos(\[ExponentialE]^(3x/4)))
> {a, b} = {-1, 1.5}
> Plot [f, {x, a, b}]
>
> I keep getting an error saying f is not a machine-size real number at x
> = -1.  Any help is appreciated.  Thanks.
>
>



  • Prev by Date: Re: Automatic sound recording
  • Next by Date: Re: Inherited
  • Previous by thread: Stupid newbie question
  • Next by thread: Re: Stupid newbie question