Why symsum does not provide the right result?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all,
I need to find the symbolic solution of the sum of the mathematical series, but symsum does not provide the right result. Here you an example with the serie:
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/621068/image.png)
syms i
symsum(i,i)
ans =
i^2/2 - i/2
This is very different from the theretical result. However, if I limit the series as follows:
symsum(i,i,0,100)
ans =
5050
That is corect. However, it is differente than
subs(symsum(i,i),i,100)
ans =
4950
Why symsum does not provide the right result?
0 Kommentare
Akzeptierte Antwort
Jan
am 18 Mai 2021
syms i n
symsum(i,i, 1, n)
If you define the sum without limits like in symsum(i,i) something different is calculated according to the documentation ( doc symsum ):
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!