MathGroup Archive 2007

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

Search the Archive

Re: How come doesn't this work?


Anolethron 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]

Try using := instead of =
grafico[n_] := Plot[{F, Taylor[n]} // Evaluate, {x, -Pi, Pi}]

Read about Set and SetDelayed in the Help Browser.

http://reference.wolfram.com/mathematica/tutorial/ImmediateAndDelayedDefinitions.html


  • Prev by Date: Re: How come doesn't this work?
  • Next by Date: Re: Non-calculus vector math
  • Previous by thread: Re: How come doesn't this work?
  • Next by thread: Non-calculus vector math