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 comentario

chadi cream
chadi cream el 22 de Dic. de 2017
Editada: Walter Roberson el 22 de Dic. de 2017
symsum((sqrt(n+1) - sqrt(n-1))/n^(3/4),n,1,inf)
vpa(ans)
=5.0311555338624769245497524622442

Iniciar sesión para comentar.

Respuestas (4)

rifat
rifat el 27 de Mayo de 2014
Editada: rifat el 27 de Mayo de 2014
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 comentarios

Nguyen Trong Nhan
Nguyen Trong Nhan el 27 de Mayo de 2014
what's about the symsum function ?
Sandie Nhatien Vu
Sandie Nhatien Vu el 5 de Ag. de 2016
@Rifat ahmed is it possible to write a script using vectorized computation instead of the for-loop for that sum of series?

Iniciar sesión para comentar.

Roger Wohlwend
Roger Wohlwend el 27 de Mayo de 2014
n = 1 : 10^6;
sum(((n+1)./n).^n./n.^2)
sum((sqrt(n+1) - sqrt(n-1))./n.^(3/4))

2 comentarios

Nguyen Trong Nhan
Nguyen Trong Nhan el 27 de Mayo de 2014
what's about the symsum function ?
chadi cream
chadi cream el 22 de Dic. de 2017
Editada: Walter Roberson el 5 de Jun. de 2021
syms n;
f=1/n^2*((n+1)/n)^n
symsum(f,n,1,inf)
vpa(ans) = 3.550777333936337795612455939406

Iniciar sesión para comentar.

Perwez Alam
Perwez Alam el 4 de Dic. de 2018

1 voto

How to write editer command to plot (t,g)
Please help me.
thanking You

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 27 de Mayo de 2014

Editada:

el 5 de Jun. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by