Taylor Polynomial e^x function
Mostrar comentarios más antiguos
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 comentario
Matt Fig
el 6 de Sept. de 2012
Respuestas (0)
Categorías
Más información sobre Digital Filter Analysis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!