RE: Machine-size real number?
- To: mathgroup at smc.vnet.net
- Subject: [mg33164] RE: [mg33135] Machine-size real number?
- From: "David Park" <djmp at earthlink.net>
- Date: Wed, 6 Mar 2002 01:55:45 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Mike,
Functions in Mathematica put there arguments in square brackets, not round
brackets. Each type of bracket in Mathematica has a specific meaning. Then,
you have to use f[x] and not just f in the Plot statement.
f[x_] := 1 - Cos[E^(3x/4)]
{a, b} = {-1, 1.5};
Plot[f[x], {x, a, b}];
David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/
> From: Mike O'Leary [mailto:Gremmie at cinci.rr.com]
To: mathgroup at smc.vnet.net
>
>
> I'm trying to plot this function
>
> f[x_] := 1 - (Cos(\[ExponentialE]^(3x/4)))
> {a, b} = {-1, 1.5}
> Plot[f, {x, a, b}]
>
> and I keep getting an error that says f is not a machine-size
> real number at
> x = -1. Any help would be appreciated.
>
>