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에서 Digital Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!