Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to use matlab to calculate this sum?

1 visualización (últimos 30 días)
Chairil Ooi Chi Zen
Chairil Ooi Chi Zen el 10 de Ag. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021

Respuestas (1)

KSSV
KSSV el 10 de Ag. de 2020
Editada: KSSV el 10 de Ag. de 2020
With loop
N = 1000 ;
thesum = 0 ;
for i = 1:N
thesum = thesum +(1/i+1/((i+2)*(i+3))) ;
end
Without loop
N = 1000 ;
i = 1:N ;
s = 1./i+1./((i+2).*(i+3)) ;
thesum = sum(s) ;
  3 comentarios
KSSV
KSSV el 10 de Ag. de 2020
What have you tried? That code will not show any error....it will run.
VBBV
VBBV el 10 de Ag. de 2020
Editada: VBBV el 10 de Ag. de 2020
Yeah. The summation of the series is thesum = 7.8178
Code has no error

Community Treasure Hunt

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

Start Hunting!

Translated by