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
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 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
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]
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!