Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

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


  • Prev by Date: How to get sqrt(Year^2)===Year?
  • Next by Date: Re: How come doesn't this work?
  • Previous by thread: Re: How come doesn't this work?
  • Next by thread: Re: How come doesn't this work?