SUM OF (-1^K)/FACTORIAL(K+1)
9 views (last 30 days)
Show older comments
PLEASE HELP!
I CAN NOT FIGURE OUT HOW TO MAKE A SUM OF k = 1 TO 6
(-1)^K/(FACTORIAL (K+1)
0 Comments
Answers (2)
Star Strider
on 19 Nov 2019
First, use element-wise operations:
k = 1:6;
v = (-1).^k./factorial(k+1)
sv = sum(v)
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!