Question: Create an array called h one element at a time. Start with the first entry as 1. The next entry is the previous entry cut

Create an array called h one element at a time. Start with the first entry as 1. The next entry is the previous entry cut in half:

h(i + 1) = h(i) / 2

We want small values, but we'll stop when the last entry is less than 10^-13. A while loop is useful here because we don't know how many entries this requires, but we can keep cutting in half while each entry satisfies a certain criteria. To be clear, the very last entry will be less than 10^-13, but all other entries will be greater than 10^-13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!