subject

For this homework assignment, you will write a simplified model of a bouncing ball using numpy. assume the ball is dropped on venus under constant acceleration g=8.87ms2 from the limit of its atmosphere, a height of 250km. model the ball's motion for one hour and 15 minutes (include second 0 and second 4,500 in your data points). after the initial state, simulate 5,000 updates to the state (for a total of 5,001 points.) your simulation should use float64 numpy arrays for time (t) and height (y). time should be represented in seconds and height should be represented in meters.

bouncing

to simulate bouncing, we'll make some simplifying assumptions (since collision detection can be complicated). if the ball's height is ever less than or equal to 0, we will assume that the ball hit the ground before the time step we are simulating and already started bouncing. you should:

instantly set its height to 0

update its velocity to 90% (0.9) of its velocity from the previous time slice of the simulation

change the direction of travel (up instead of down)

count the number of times the ball bounces in an integer variable named bounces.

plotting y v. t may be useful for you to understand what results your code is producing.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:50
Write a 3-4 page apa formatted paper comparing your organization’s it strategy with the best practices outlined in your course text. content should include, but not be limited to: developing and delivering on the it value, developing it strategy for the business value and linking it to business metrics. your paper should include an abstract and a conclusion and a reference page with 3-5 references
Answers: 1
question
Computers and Technology, 22.06.2019 17:30
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
Answers: 1
question
Computers and Technology, 25.06.2019 04:10
While creating a web page, what does each of the following html tags define? 1. 2. 3. 4. a. defines a new paragraph b. defines a term c. defines a single line break d. defines a heading
Answers: 1
You know the right answer?
For this homework assignment, you will write a simplified model of a bouncing ball using numpy. assu...
Questions
question
Mathematics, 08.05.2020 06:57
question
Mathematics, 08.05.2020 06:57
Questions on the website: 13722363