MathGroup Archive 2010

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

Search the Archive

Manipulate Series Expansions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112976] Manipulate Series Expansions
  • From: Daniel <bridges2 at gmail.com>
  • Date: Sat, 9 Oct 2010 06:33:24 -0400 (EDT)

I'm new to Mathemtica and have been searching the net for a while
regarding using Manipulate to compare a series expansion to the
original function, but haven't found an adequate solution to my
errors.

Why doesn't this work:

Manipulate[
 Plot[{Normal[Series[Sin[x], {x, 0, n}]], Sin[x]}, {x, -10 Pi,
   10 Pi}, PlotRange -> 2], {n, 1, 100, 1}]

I can do this to make it work as intended:

p[x_, n_] := Normal[Series[Sin[y], {y, 0, n}]] /. y -> x
Manipulate[
 Plot[{p[x, n], Sin[x]}, {x, -10 Pi, 10 Pi}, PlotRange -> 2], {n, 1,
  100, 1}]

Any information would be helpful.



  • Prev by Date: grey levels in TuringMachine
  • Next by Date: Binary data file conversion
  • Previous by thread: grey levels in TuringMachine
  • Next by thread: Re: Manipulate Series Expansions