Taylor Polynomial e^x function

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.

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Polynomials 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by