Answered step by step
Verified Expert Solution
Link Copied!

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:image text in transcribed

This is the reference code:

image text in transcribed

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) pass

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

2. Do you find change a. invigorating? b. stressful? _______

Answered: 1 week ago

Question

How was their resistance overcome?

Answered: 1 week ago