Re: How come doesn't this work?
- To: mathgroup at smc.vnet.net
- Subject: [mg75719] Re: [mg75659] How come doesn't this work?
- From: DrMajorBob <drmajorbob at bigfoot.com>
- Date: Wed, 9 May 2007 04:30:21 -0400 (EDT)
- References: <27952502.1178619459720.JavaMail.root@m35>
- Reply-to: drmajorbob at bigfoot.com
That code can't work, because n is undefined, so Taylor[n] is undefined,
so you can't Plot it.
But THIS works:
Taylor[n_] := Normal[Series[ArcTan[x], {x, 0, n}]]
F = ArcTan[x]
Grafico[n_] :=
Plot[{F, Taylor[n]} // Evaluate, {x, -Pi, Pi},
DisplayFunction -> $DisplayFunction]
Grafico[3]
Bobby
On Tue, 08 May 2007 04:47:38 -0500, Anolethron <abacus78685 at tin.it> wrot=
e:
> I know I have to put Evaluate In but it doesn't work still.
> Taylor[n_] := Normal[Series[ArcTan[x], {x, 0, n}]]
>
> F = ArcTan[x]
> Grafico[n_] =
> Plot[{F, Taylor[n]} // Evaluate, {x, -Pi, Pi},
> DisplayFunction -> $DisplayFunction]
>
>
>
>
-- =
DrMajorBob at bigfoot.com