Help me how to calculate sum of series ?

help me how to calculate the sum of a series in Matlab. (for example 2 series in the picture)

댓글 수: 1

chadi cream
chadi cream 2017년 12월 22일
편집: Walter Roberson 2017년 12월 22일
symsum((sqrt(n+1) - sqrt(n-1))/n^(3/4),n,1,inf)
vpa(ans)
=5.0311555338624769245497524622442

댓글을 달려면 로그인하십시오.

답변 (4개)

rifat
rifat 2014년 5월 27일
편집: rifat 2014년 5월 27일

3 개 추천

You can not add infinite number of terms. If the sum is a converging sum, then you can add a large number of terms (e.g. n=5000) to get a satisfactory result.
n=5000;
series1=0;
series2=0;
for i=1:n
p=(((i+1)/i)^i)/(i^2);
series1=series1+p;
p=(sqrt(i+1)-sqrt(n-1))/(i^.75);
series2=series2+p;
end

댓글 수: 2

Nguyen Trong Nhan
Nguyen Trong Nhan 2014년 5월 27일
what's about the symsum function ?
@Rifat ahmed is it possible to write a script using vectorized computation instead of the for-loop for that sum of series?

댓글을 달려면 로그인하십시오.

Roger Wohlwend
Roger Wohlwend 2014년 5월 27일

1 개 추천

n = 1 : 10^6;
sum(((n+1)./n).^n./n.^2)
sum((sqrt(n+1) - sqrt(n-1))./n.^(3/4))

댓글 수: 2

Nguyen Trong Nhan
Nguyen Trong Nhan 2014년 5월 27일
what's about the symsum function ?
chadi cream
chadi cream 2017년 12월 22일
편집: Walter Roberson 2021년 6월 5일
syms n;
f=1/n^2*((n+1)/n)^n
symsum(f,n,1,inf)
vpa(ans) = 3.550777333936337795612455939406

댓글을 달려면 로그인하십시오.

Perwez Alam
Perwez Alam 2018년 12월 4일

1 개 추천

How to write editer command to plot (t,g)
Please help me.
thanking You
Kokou Moutchou
Kokou Moutchou 2018년 5월 1일

0 개 추천

sqrt(6*((1/1^2)+(1/2^2)+(1/3^2)+...+(1/n^2(

카테고리

도움말 센터File Exchange에서 Mathematics에 대해 자세히 알아보기

제품

질문:

2014년 5월 27일

편집:

2021년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by