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
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]