Algorithms
1. This question has 2 part(s).
1.1. The following algorithm produces a numerical approximation for the integral
Step 1 | Start |
Step 2 | Input the values of A, B and N |
Step 3 | Let H = (B – A) / N |
Step 4 | Let C = H / 2 |
Step 5 | Let D = 0 |
Step 6 | Let D = D + A4+ B4 |
Step 7 | Let E = A |
Step 8 | Let E = E + H |
Step 9 | If E = B go to Step 12 |
Step 10 | Let D = D + 2 × E4 |
Step 11 | Go to Step 8 |
Step 12 | Let F = C × D |
Step 13 | Output F |
Step 14 | Stop |
For the case when A = 1, B = 3 and N = 4,
(i) complete the table in the answer book to show the results obtained at each step of the algorithm.
(ii) State the final output.
1.2. Calculate, to 3 significant figures, the percentage error between the exact value of and the value obtained from using the approximation to in this case.
Ai এর মাধ্যমে
১০ লক্ষ+ প্রশ্ন ডাটাবেজ
প্র্যাকটিস এর মাধ্যমে নিজেকে তৈরি করে ফেলো
উত্তর দিবে তোমার বই থেকে ও তোমার মত করে।
সারা দেশের শিক্ষার্থীদের মধ্যে নিজের অবস্থান যাচাই
No related questions found