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: [mg75731] Re: How come doesn't this work?
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Wed, 9 May 2007 04:36:56 -0400 (EDT)
  • References: <f1phau$i6i$1@smc.vnet.net>

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]
> 
> 
> 
If you write Grafico[n_]:= (rather than =) you will define your function 
Grafico, and you can use it:

Grafico[5]

Remember that if you use = the right hand side gets evaluated at once - 
even though n does not have an integer value.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: How come doesn't this work?
  • Next by Date: Can one retain ver 5.1 if downloading ver 6.0?
  • Previous by thread: Re: How come doesn't this work?
  • Next by thread: Re: How come doesn't this work?