Skip to content

az181/Modelling-CW2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

CW2 this is where we are putting the matlab

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages