0

Is there a built in Taylor series representation function in Wolfram Mathematica? For Example:

In=TaylorSeries[(*function goes here*)]

Out=(*Function rewritten in sigma notation as a power series*)

If not, is it possible to code such a thing...? How does it work in Wolfram Alpha?

useranonis
  • 435
  • 2
  • 7

1 Answers1

0

An example for sine as a function of x:

SeriesRepresentationSin = TraditionalForm[Inactive[Sum][SeriesCoefficient[Sin[x], {x, 0, k}, Assumptions -> k >= 0]*x^k, {k, 0, \[Infinity]}]] (*Outputs function expression as series*)
Activate[SeriesRepresentationSin] (*Outputs algebraic function expression*)

enter image description here

enter image description here

I'm still curious of how Wolfram Alpha outputs so many different series. I'm guessing for now it has to do with the "Assumptions" command.

There is also:

MathematicalFunctionData["Sin", "SeriesRepresentations", "TraditionalFormPresentation" -> True]

enter image description here

Although it appears to be limited to some known functions, I believe.

useranonis
  • 435
  • 2
  • 7