2. (30 points) A Monte Carlo analysis can be used for optimization. For example, the trajectory of a ball can be computed with x2 yo (tan89) 2t/ cos2(80) where y = the height (m), θ = the initial angle (radians), to = the initial velocity (m/s), g = the gravitational constant 9.81 m/s2, and yo the initial height (m). Given yo-1 m, Do 25 m/s, and 50, determine the maximum height and the corresponding
OR
OR