Infinit symbolic series with symsum() - HELP!
Show older comments
Hello everyone,
I am trying to solve the following infinite series problem at MATLAB R2015a:

I have scripted the following:
clear all
clc
syms x t a n
N = [n, n+2]; %Vector with n and n+2
A_N = ((tan(x)).^N);%Integrant of a_n
a_n = int(A_N,x,0,pi/4);%Integral term a_n
s = (1/n)*(a_n(1) + a_n(2));%General term of the series
S = symsum(s,n,1,inf);
which yields for the varialbe S:
S = symsum((int(tan(x)^n, x, 0, pi/4) + int(tan(x)^(n + 2), x, 0, pi/4))/n, n, 1, Inf)
If I use vpa(S), it yields: ans = 1.0
What am I doing wrong? How could I solve this problem properly in matlab?
Thank you in advance
Gabriel
Accepted Answer
More Answers (0)
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!