How to simplify a symbolic expression sum of terms involving the Heaviside function
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohamed
am 28 Feb. 2024
Kommentiert: Dyuman Joshi
am 28 Feb. 2024
sympref('HeavisideAtOrigin', 1);
syms m n
assume(n, {'positive','integer'})
s(n) = simplify(symsum(heaviside(m), m, [0, n]), 50)
How to obtain the symbolic sum
?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1630286/image.png)
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 28 Feb. 2024
For that you have to assume the same for 'm' as well -
sympref('HeavisideAtOrigin', 1);
syms m n positive integer
s(n) = symsum(heaviside(m), m, [0, n])
2 Kommentare
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!