Taylor Polynomial e^x function
Afficher commentaires plus anciens
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 commentaire
Matt Fig
le 6 Sep 2012
Réponses (0)
Catégories
En savoir plus sur Digital Filter Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!