SUM OF (-1^K)/FACTORIAL(K+1)
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
PLEASE HELP!
I CAN NOT FIGURE OUT HOW TO MAKE A SUM OF k = 1 TO 6
(-1)^K/(FACTORIAL (K+1)
0 commentaires
Réponses (2)
Star Strider
le 19 Nov 2019
First, use element-wise operations:
k = 1:6;
v = (-1).^k./factorial(k+1)
sv = sum(v)
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!