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, 21.06.2019 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
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, 10.03.2022 23:20
question
Mathematics, 10.03.2022 23:20
question
Physics, 10.03.2022 23:30
question
Mathematics, 10.03.2022 23:30
Questions on the website: 13722361