MathGroup Archive 2007

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

Search the Archive

Re: How come doesn't this work?


How about?

In[13]:=
Quit[]

In[1]:=
taylor[n_][x_] := Normal[ArcTan[x] + O[x]^n]

In[2]:=
f[x_] := ArcTan[x]

In[3]:=
graph[n_] := Plot[Evaluate[{f[x], taylor[n][x]}], {x, -Pi, Pi},
PlotStyle -> {Red, Blue}, Frame -> {True, True, False, False},
FrameTicks -> {Range[-Pi, Pi, Pi/2], Range[-3, 3]}, PlotRange ->
{-3.1, 3.1}]

In[4]:=
graph /@ Range[10]

Dimitris

=CF/=C7 Anolethron =DD=E3=F1=E1=F8=E5:
> 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: Non-calculus vector math
  • 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?