       Re: Stupid newbie question

• To: mathgroup at smc.vnet.net
• Subject: [mg33184] Re: Stupid newbie question
• From: "Allan Hayes" <hay at haystack.demon.co.uk>
• Date: Thu, 7 Mar 2002 02:23:34 -0500 (EST)
• References: <a61ump\$goj\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```Mike,

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

We can also use

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

but one way or another x must appear in the first position .

--
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

"Mike O'Leary" <Gremmie at cinci.rr.com> wrote in message
news:a61ump\$goj\$1 at smc.vnet.net...
> 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: Stokes integral transformation with Mathematica ?
• Next by Date: Re: experimental set of points
• Previous by thread: Re: Stupid newbie question
• Next by thread: A rule with condition for the elements of a list