Taylor Polynomial e^x function
Show older comments
I am looking for a way to develop a function that will solve the Taylor polynomial of degree n for computing e^x, such that:
e^x = 1 + x/(1!) + x^2/(2!) + x^3/(3!) + x^4/(4!) ... + x^n/(n!)
I want the function to take x and n as inputs, and the output would be the result e^x. The trick is that for loops and other control structures cannot be used. I am looking for some hints or tips. I understand how the process would work if loops were allowed to iterate, but without them, I am at a loss.
I appreciate any help you can provide.
1 Comment
Matt Fig
on 6 Sep 2012
Answers (0)
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!