Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 1.28 KB

README.md

File metadata and controls

31 lines (29 loc) · 1.28 KB

Constance

Parameter Meaning Value
m Mass of tennis ball (40 + 7 ) × 10−3 kg
|g| Gravitational acceleration 9.81 ms−2
CD Drag coefficient 0.5
ρ Density of air 1.2 kg m−3
A Cross sectional area of ball (40 − 7 ) × 10−4 m2
Hball Initial height of ball 0.8 m
L Distance from baseline to net 11.9 m
Hnet Net height 0.9 m

The Code

Q1

  • Q1 : a function (that takes in velocity and the initial angle) that plots the trajectory of the ball with no drag, as the forwardEuler and analytical solutions
  • forwardEuler : the forward euler metherd
  • trajectory_eq : this is the analytical soluton for the trajectory
  • dxdt : ODE
  • dydt : ODE

Q2

Q3

#TODO

Q4