You are watching the trail of two jet planes you make a note of the position of the trails. The trail positions are given below. Plane 1 is moving along the line of y = az +b+csin(z) Plane 2 is moving along the line of y= az +b+csin(z – 1) Find the position where the two plane intersects. (Hint: it's on the left)
python3
xs = np.linspace(0,5,100)
plane1 = np.array([ 2. , 2.40393306, 2.8072224 , 3.20922595, 3.60930489,
4.00682534, 4.40115993, 4.79168942, 5.17780427, 5.5589062 ,
5.93440972, 6.3037436 , 6.66635235, 7.02169765, 7.36925969,
7.70853849, 8.03905523, 8.36035341, 8.67200004, 8.97358676,
9.26473085, 9.54507622, 9.81429434, 10.07208503, 10.31817726,
10.55232985, 10.77433205, 10.98400411, 11.1811977 , 11.36579635,
11.53771568, 11.69690365, 11.84334071, 11.97703979, 12.09804633,
12.20643815, 12.3023252 , 12.38584936, 12.45718401, 12.51653364,
12.56413329, 12.60024796, 12.62517195, 12.6392281 , 12.64276695,
12.63616588, 12.61982812, 12.59418173, 12.55967851, 12.51679284,
12.4660205 , 12.40787736, 12.34289809, 12.27163481, 12.19465564,
12.11254329, 12.02589357, 11.93531385, 11.84142153, 11.74484244,
11.64620928, 11.54615999, 11.4453361 , 11.34438114, 11.24393896,
11.14465211, 11.04716019, 10.95209821, 10.86009501, 10.77177161,
10.68773965, 10.60859982, 10.53494035, 10.46733549, 10.40634403,
10.35250791, 10.30635083, 10.26837688, 10.23906932, 10.21888928,
10.20827461, 10.20763878, 10.21736982, 10.2378293 , 10.26935144,
10.31224225, 10.36677875, 10.43320826, 10.51174775, 10.60258334,
10.70586976, 10.82173003, 10.95025505, 11.09150346, 11.24550145,
11.41224269, 11.59168833, 11.78376716, 11.98837572, 12.20537863])
plane2 = np.array([ -4.52441295, -4.59088002, -4.65112617, -4.70538416,
-4.75390203, -4.79694243, -4.834782 , -4.86771064,
-4.89603076, -4.92005656, -4.94011314, -4.95653576,
-4.96966893, -4.97986556, -4.98748603, -4.99289733,
-4.99647203, -4.99858742, -4.9996245 , -4.99996702,
-5.00000052, -5.00011129, -5.00068545, -5.00210793,
-5.00476152, -5.00902582, -5.01527637, -5.02388362,
-5.03521201, -5.04961907, -5.06745443, -5.08905901,
-5.11476412, -5.14489059, -5.179748 , -5.21963384,
-5.2648328 , -5.315616 , -5.37224033, -5.43494779,
-5.50396486, -5.57950191, -5.66175272, -5.75089392,
-5.84708458, -5.95046579, -6.06116031, -6.17927222,
-6.30488672, -6.43806986, -6.57886839, -6.72730965,
-6.88340146, -7.04713216, -7.2184706 , -7.39736622,
-7.5837492 , -7.77753061, -7.97860267, -8.18683899,
-8.40209493, -8.62420793, -8.85299796, -9.08826794,
-9.32980428, -9.57737741, -9.83074235, -10.08963938,
-10.35379464, -10.62292088, -10.89671816, -11.17487463,
-11.45706734, -11.74296302, -12.03221898, -12.32448395,
-12.61939898, -12.91659838, -13.21571061, -13.51635928,
-13.81816406, -14.12074167, -14.42370689, -14.72667347,
-15.02925518, -15.33106677, -15.63172494, -15.93084937,
-16.2280636 , -16.52299607, -16.81528104, -17.10455951,
-17.39048016, -17.67270023, -17.95088638, -18.22471558,
-18.4938759 , -18.75806733, -19.0170025 , -19.27040749])
plt.plot(xs, plane1, '.r')
plt.plot(xs, plane2, '.b')
Step by step
Solved in 4 steps with 2 images