Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Calculating a trajectory 10 points Callista Cherry Bomb Davidson is at it again Her scheme this week is to break last week's world record. To
Calculating a trajectory 10 points Callista "Cherry Bomb" Davidson is at it again Her scheme this week is to break last week's world record. To this end, she has purchased a new cannon rig, which can accommodate greater, perhaps even dangerous, amounts of propellant. Since there are so many variables to track, rather than try to brute-force a solution, she asks you to optimize the launch for her again Your solution should seek to optimize distance traveled by varying the angle of launch (0-90") and the amount of propellant (0.05-0.12). You may have some suspicions about the best-case scenario, but you should adopt a hill-cimbing procedure to be certain. This problem is_convex, meaning that a hil-climbing approach should be able to find the globally optimal solution. This makes it a great candidate for this optimization technique 9.8 m-s-2 Use 0.05 kg as the initial guess for the propellant mass. Use a starting height of 5 m and assume an acceleration due to gravity of g = Use a starting angle of OP. Treat drag and z and y components as in hw1, as well as collision with the ground. It's worth noting that the physics in hwe were a bit off. The calculation for the force in the rr-direction was specified there as F = Cp Fz =-Cpt ; it should rather have been based on the component of total velocity, F =-Cor F =-C D means that if you have a line like This you shoukd replace it with something like v " np.sqrt( vx( j-1 ]*.2 vy1 ]."2 ) + for hw11 You will need to perform this transformation for the y-component as well First, define a figure-of-merit function dist( angle, n-prop which accepts the angle of launch and the mass of propellant used m_prop (in kilograms) and returns the distance traveled (in m). This will be very simlar to much of your code from hu1. You may also use the reference answer from he to compose dist A reference case for dist is assert np.isclose dist 30,0,18,134.7136 For this particular cannon and Callista's weightconsider the initial velocity to be a function of propellant as follows ty (mpeao) = 1500(meme ) Your solution should include a function dist Calculating a trajectory 10 points Callista "Cherry Bomb" Davidson is at it again Her scheme this week is to break last week's world record. To this end, she has purchased a new cannon rig, which can accommodate greater, perhaps even dangerous, amounts of propellant. Since there are so many variables to track, rather than try to brute-force a solution, she asks you to optimize the launch for her again Your solution should seek to optimize distance traveled by varying the angle of launch (0-90") and the amount of propellant (0.05-0.12). You may have some suspicions about the best-case scenario, but you should adopt a hill-cimbing procedure to be certain. This problem is_convex, meaning that a hil-climbing approach should be able to find the globally optimal solution. This makes it a great candidate for this optimization technique 9.8 m-s-2 Use 0.05 kg as the initial guess for the propellant mass. Use a starting height of 5 m and assume an acceleration due to gravity of g = Use a starting angle of OP. Treat drag and z and y components as in hw1, as well as collision with the ground. It's worth noting that the physics in hwe were a bit off. The calculation for the force in the rr-direction was specified there as F = Cp Fz =-Cpt ; it should rather have been based on the component of total velocity, F =-Cor F =-C D means that if you have a line like This you shoukd replace it with something like v " np.sqrt( vx( j-1 ]*.2 vy1 ]."2 ) + for hw11 You will need to perform this transformation for the y-component as well First, define a figure-of-merit function dist( angle, n-prop which accepts the angle of launch and the mass of propellant used m_prop (in kilograms) and returns the distance traveled (in m). This will be very simlar to much of your code from hu1. You may also use the reference answer from he to compose dist A reference case for dist is assert np.isclose dist 30,0,18,134.7136 For this particular cannon and Callista's weightconsider the initial velocity to be a function of propellant as follows ty (mpeao) = 1500(meme ) Your solution should include a function dist
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started