Re: Stupid newbie question
- To: mathgroup at smc.vnet.net
- Subject: [mg33148] Re: Stupid newbie question
- From: Erk Jensen <Erk.Jensen at cern.ch>
- Date: Wed, 6 Mar 2002 01:55:21 -0500 (EST)
- Organization: CERN http://www.cern.ch
- References: <a61ump$goj$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Mike O'Leary wrote: > > 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. here you go: Clear[a, b, f] f[x_] := 1 - (Cos[\[ExponentialE]^(3x/4)]) {a, b} = {-1, 1.5} Plot[f[x], {x, a, b}]