how to generate an algebraic equation from a series sum?

1 view (last 30 days)
I'm working through a calculus book for self-interests. One exercise requires that I use a computer algebra system to generate an equation that is equivalent to particular sum. The sum and equation are as follows (this is the actual answer taken from the back of the book):
My question is, can I use Matlab to generate this equation which is equivalent to the limit of the sum of i^5? If so, how is this done in Matlab?
Thanks,

Accepted Answer

Walter Roberson
Walter Roberson on 17 Mar 2021
Edited: Walter Roberson on 17 Mar 2021
syms i n
p = -3:9
p = 1×13
-3 -2 -1 0 1 2 3 4 5 6 7 8 9
CAS = symsum(i.^p, i, 1, n).'
CAS = 
  1 Comment
IB00
IB00 on 17 Mar 2021
Ha! I'm kicking myself. I spent the the afternoon fighting with symsum. I did not even think to try the element wise notation you did on vector p and kept getting error messages I did not understand. Big thanks for responding so quickly and helping me out.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!