How solve this summation using loop for x=3? but if could solve it without using build in function (factorial)
显示 更早的评论

4 个评论
Dyuman Joshi
2023-12-23
As this is clearly a HW question, show us what have you tried yet to solve it.
Bajdar Nouredine
2024-1-16
Dyuman Joshi
2024-1-16
编辑:Dyuman Joshi
2024-1-16
Let me push you in the right direction - How can you define factorial of an integer using basic arithmatic operations?
Steven Lord
2024-1-16
5! is a constant, you could easily compute it before the loop and store it in a variable for use in the loop. Or you could pull it outside the summation and multiply the sum by 5! at the end, since it doesn't depend on n.
Another hint: Let's say you knew x^k/k! for one value of k. How could you use that result to compute x^(k+1)/(k+1)! without recomputing either the exponentiation or the factorial, just using arithmetic?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!