How can I solve this problem?
1 次查看(过去 30 天)
显示 更早的评论
cos(0.2) with the relation (photo)(with 10 and 50 terms) and direct function exponential;observe a relationship recurrence between 2 terms successive Ti+1 and T1.
0 个评论
采纳的回答
Roger Stafford
2017-1-9
In “ observe a relationship recurrence between two successive terms, Ti+1 and T1 ” I believe you are being asked how the n+1-st term relates to the n-th term in the series for cosine. Note that if (-1)^n*x^(2*n)/(2*n)! is one term and (-1)^(n+1)*x^(2*(n+1))/(2*(n+1))! is the next term then the second is equal to the first multiplied by -x^2/((2*n+1)*(2*n+2)).
2 个评论
Walter Roberson
2017-1-9
You would go through the loop generating terms and adding them to a running total. But instead calculating each term from scratch, remember the previous term and make the minimal change to it required to calculate the new term.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!