Can the symbolic toolbox be used to derive results for arbitrary number n?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
atharva aalok
le 23 Sep 2022
Modifié(e) : Torsten
le 23 Sep 2022
I wish to do some calculations for my research for a general number n, but the calculations are hellishly long. I was wondering if matlab can be used to do this.
Consider as an example problem the sum of first 'n' natural numbers.
Can I use the matlab symbolic toolbox to arrive at the result n(n+1) / 2?
If yes, how can I do that?
0 commentaires
Réponse acceptée
Walter Roberson
le 23 Sep 2022
Modifié(e) : Torsten
le 23 Sep 2022
syms n m
symsum(m, m, 1, n)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!