Question: A Monte Carlo analysis can be used for optimization. For example, the trajectory of a ball can be computed with where y = the height
A Monte Carlo analysis can be used for optimization. For example, the trajectory of a ball can be computed with

where y = the height (m), θ0 = the initial angle (radians), v0 = the initial velocity (m/s), g = the gravitational constant = 9.81 m/s2, and y0 = the initial height (m). Given y0 = 1 m, v0 = 25 m/s, and θ0 = 50o, determine the maximum height and the corresponding x distance (a) Analytically with calculus and
(b) Numerically with Monte Carlo simulation. For the latter, develop a script that generates a vector of 10,000 uniformly-distributed values of x between 0 and 60 m. Use this vector and Eq. P14.35 to generate a vector of heights. Then, employ the max function to determine the maximum height and the associated x distance.
y = (tano).x - 8 2v cos00 x + yo
Step by Step Solution
3.48 Rating (148 Votes )
There are 3 Steps involved in it
a Analytically with calculus To find the maximum height we need to find the derivative of y with res... View full answer
Get step-by-step solutions from verified subject matter experts
