MathGroup Archive 2007

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

Search the Archive

Re: How come doesn't this work?


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?