- #1
Jovany_17
- 2
- 0
HI please help me this could someone verify it for me please find attachement
clc;
clear all;
k=0;
s=0;
N=inf;
for i=1:N
s=s+(1/(k^2+1));
k=k+1;
end
syms x n
a0=1/pi*int(cosh(x),-pi,pi);
an=1/pi*int(cosh(x)*cos(n*x),-pi,pi);
bn=1/pi*int(cosh(x)*sin(n*x),-pi,pi);
fs=0;
for l=0:100
fs=fs+(an*cos(l*x)+bn*sin(l*x))
end
fs-fs+a0/2;
clc;
clear all;
k=0;
s=0;
N=inf;
for i=1:N
s=s+(1/(k^2+1));
k=k+1;
end
syms x n
a0=1/pi*int(cosh(x),-pi,pi);
an=1/pi*int(cosh(x)*cos(n*x),-pi,pi);
bn=1/pi*int(cosh(x)*sin(n*x),-pi,pi);
fs=0;
for l=0:100
fs=fs+(an*cos(l*x)+bn*sin(l*x))
end
fs-fs+a0/2;