How to simplify a symbolic expression sum of terms involving the Heaviside function
8 views (last 30 days)
Show older comments
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 ?
0 Comments
Accepted Answer
Dyuman Joshi
on 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 Comments
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!