How can I write this summation:
where N is simply input by the user

 Réponse acceptée

Lalit Dhurve
Lalit Dhurve le 4 Fév 2020

1 vote

Simple !!
function Y=Summation(N)
Y=0;
for n=1:1:N
Y=Y+((n+2)/sqrt(n))+n^3;
end
end
Done !!!

Plus de réponses (0)

Catégories

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by