Filter löschen
Filter löschen

Can the symbolic toolbox be used to derive results for arbitrary number n?

1 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 23 Sep. 2022
Bearbeitet: Torsten am 23 Sep. 2022
syms n m
symsum(m, m, 1, n)
ans = 

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by