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 |
- 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
- trajctory_drag : the script that plots the trajctory for drag
- dxdt_drag : ODE
- dydt_drag : ODE
#TODO
- Q4 : the script that plots the trajctory for drag and the magnus effect
- forwardEuler_mag : forward with omega as an input
- dxdt_mag : ODE
- dydt_mag : ODE