Question

run/call tle un/cd to compute the sum of the first 15 terms of the series: th (b) It is desired 14 n3 - 20 n2 + 5n, 110) 1,2,

0 0
Add a comment Improve this question Transcribed image text
Answer #1

%Matlab code for sum of 15 terms clear al1 close all %initialize s s-0; %loop for all n for n-l:15 v-14*n*3-20*n 2+5*n; end f

%Matlab code for sum of 15 terms
clear all
close all

%initialize s
s=0;

%loop for all n

for n=1:15
  
    v=14*n^3-20*n^2+5*n;
    s=s+v;
  
end

fprintf('\n\tSum of 15 terms is %f .\n',s)

%%%%%%%%%%%% End of Code %%%%%%%%%%%%%
   

Add a comment
Know the answer?
Add Answer to:
run/call tle un/cd to compute the sum of the first 15 terms of the series: th (b) It is desired 14 n3 - 20 n2 + 5n, 110) 1,2,..15 n Develop a pseudocode of the required program. roposed algorithm in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT