Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write in python, this is the question: This is the reference code: Calculating a trajectory 5 points Callista Cherry Bomb Davidson is at it
Please write in python, this is the question:
This is the reference code:
Calculating a trajectory 5 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. First, define a figure-of-merit function dist( angle,m_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 similar to much of your code from hw10.In order to have consistent results, please use the reference answer from hw1e to compose dist A reference case for dist is: assert np.isclose( dist( 30,0.1),143.9611) For this particular cannon and Callista's weight, consider the initial velocity to be a function of propellant as follows 0.45 65 kg Your solution should include a function dist. Starter code (click to view) def dist( angle,m_prop) pass Calculating a trajectory 5 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. First, define a figure-of-merit function dist( angle,m_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 similar to much of your code from hw10.In order to have consistent results, please use the reference answer from hw1e to compose dist A reference case for dist is: assert np.isclose( dist( 30,0.1),143.9611) For this particular cannon and Callista's weight, consider the initial velocity to be a function of propellant as follows 0.45 65 kg Your solution should include a function dist. Starter code (click to view) def dist( angle,m_prop) passStep 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