Mathematica 9 is now available
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: [mg75694] Re: [mg75659] How come doesn't this work?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 9 May 2007 04:16:31 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Taylor[n_]:=
    Normal[Series[ArcTan[x],{x,0,n}]];

F=ArcTan[x];

Use SetDelayed when defining Grafico

Grafico[n_]:=Plot[{F,Taylor[n]}//Evaluate,
      {x,-Pi,Pi},PlotStyle->{Blue,Red}];

Grafico[3]


Bob Hanlon

---- Anolethron <abacus78685 at tin.it> wrote: 
> 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]
> 
> 
> 



  • Prev by Date: Re: How come doesn't this work?
  • 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?