Page 1 of 1

c) Using a for loop calculate the sum of the following sequence 1 1 1 1 1 1+ - + 3 5 9 1005 d) Write the above sum using

Posted: Tue May 24, 2022 8:22 am
by answerhappygod
C Using A For Loop Calculate The Sum Of The Following Sequence 1 1 1 1 1 1 3 5 9 1005 D Write The Above Sum Using 1
C Using A For Loop Calculate The Sum Of The Following Sequence 1 1 1 1 1 1 3 5 9 1005 D Write The Above Sum Using 1 (29.63 KiB) Viewed 15 times
c) Using a for loop calculate the sum of the following sequence 1 1 1 1 1 1+ - + 3 5 9 1005 d) Write the above sum using vectorisation instead of a for loop [8 marks] e) Why may it be favourable to use vectorisation instead of using a for loop for the above problem [2 marks] 25 Marks [8 marks]