How solve this summation using loop for x=3? but if could solve it without using build in function (factorial)
Show older comments

4 Comments
Dyuman Joshi
on 23 Dec 2023
As this is clearly a HW question, show us what have you tried yet to solve it.
Bajdar Nouredine
on 16 Jan 2024
Dyuman Joshi
on 16 Jan 2024
Edited: Dyuman Joshi
on 16 Jan 2024
Let me push you in the right direction - How can you define factorial of an integer using basic arithmatic operations?
Steven Lord
on 16 Jan 2024
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?
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!