A Small Mathematical Project in Python

Александр
2

Александр

no recommendations
no complaints
Project title: A Small Mathematical Project in Python
Type of cooperation: One-time project
Section: Education and consulting
Prepayment: without prepayment
Payment methods: Bank transfer, Electronic money
Acceptance of requests: from until 2022-07-11

Project description:
Offering extra earnings. You need to do a little math project in Python (Jupiter).
Formulation of the task:

Robin Hood throws a stone with a letter tied to it through the loophole of the fortress wall into the open window of the castle behind it:
(Image attached)
Simulate the flight of the stone using the function integrate.ode. Consider the following developments:

The stone fell to the ground, not reaching the window (either before or after the wall).
The stone did not fall into the loophole (hit the wall);
The stone was stuck in the loophole (knocked on or loopholes and fell inside it);
The stone hit the wall of the castle (not falling through the window);
The stone hit the window (for simplicity we believe that the fortress wall and the castle are very high and you can not throw a stone over them). When each of these events occurs, the calculations stop.
Write a function at the entrance of which are submitted:

Parameters: the mass of the stone, the distance from Robin Hood to the wall, the thickness of the wall (equal to the length of the loophole), the distance from the ground to the loophole and the height of the loophole, the distance from the wall to the castle, the distance from the ground to the window and the height of the window,

Initial conditions: angle of throw and initial speed of the stone.

The program must display a “side view” (polygons can be drawn using the functions of matplotlib.patches.Patch) and the flight path.

Work done in Jupyter Notebook
Project author
Александр