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: [mg75697] Re: How come doesn't this work?
  • From: dh <dh at metrohm.ch>
  • Date: Wed, 9 May 2007 04:18:10 -0400 (EDT)
  • References: <f1phau$i6i$1@smc.vnet.net>


Hi,

with "Set" your definition gets evaluated at once without n having a 

value. Therefore, what you want is a "SetDelayed":

  Grafico[n_] := ...

hope this helps, Daniel



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]

> 

> 

> 




  • Prev by Date: Re: question
  • Next by Date: Re: AiryAi
  • Previous by thread: Re: How come doesn't this work?
  • Next by thread: Re: How come doesn't this work?