symsum and a divergent series
Show older comments
I apologize if I'm asking something trivial.
I know that symsum can be used for series. For instance,
syms k
symsum(2^k/factorial(k),k,1,Inf)
The series whose general term is
is a divergent one. When I try symsum with this series I get
symsum(log(k+1)/k,k,1,Inf)
Matlab return the series unevaluated. However, I wanted a behavior similar to Mathematica's.
Sum[Log[r + 1]/r, {r, 1, Infinity}]
% Output During evaluation of In[1]:= Sum::div: Sum does not converge.
Is it possible to get such an output from Matlab's Symbolic Math Toolbox? Thank you very much in advance!
Accepted Answer
More Answers (1)
1 Comment
But MATLAB should also show Inf as result for
syms x k
symsum(log(k+1)/k,k,1,Inf)
But it doesn't.
Categories
Find more on Mathematics 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!