Hint

        tv      [   0.6    0.7        1.5     1.6     1.7    1.8     1.9]

        px      [   2.4    2.9       5.7     6.6      7.5    8.4    9.3]

        py       [  9.7    10.1   10.5   10.2   10.1   9.9    9.8]

Note that in the above arrays, the landing time is in red, the landing distance is in blue and all the elements in py at or above 10 is in magenta.

In order to determine the landing time and landing distance, you need to determine which element in tv is landing time and which element in px is the landing distance. An important observation is landing time and distance are at the same position (or index) in these two arrays. Therefore, the key problem is to determine this position or index. The next thing to note is that this index can be determined from the py array by using the Python numpy functions where and max.

Click to go back to the lab page.