How can I write the taylor series expansion for the function (1+x^2)^(-1/2) in code

3 views (last 30 days)

Hello. I am trying to get this taylor series expansion in code but I am having a hard time. I attached a picture of the function and its taylor series expansion. I thought of using the factorial function but I don't think that will work here. Thank you for the help.

  2 Comments
Geoff Hayes
Geoff Hayes on 5 Jul 2018
Joshua - no, you probably don't need to use the factorial function here. But from what you have shown, what is the pattern? Once you figure that out then the expansion should be easy.

Sign in to comment.

Accepted Answer

Torsten
Torsten on 5 Jul 2018
Edited: Torsten on 5 Jul 2018
a0 = 1
an = -a(n-1) * (2*n-1)/(2*n)
  4 Comments

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!