Application of Euler Cromer algorithm to coupled differential equations

123 Views Asked by At

I have a situation where a tennis ball is hit at an angle Θ0 from some height y0 above the ground. The equations representing this motion are :

dvx / dt = -k v (CD vx - CL vy) ;

dvy / dt = - g - k v (CL vx + CDvy).

Here vx = v cos Θ and vy $= v sin Θ$ , CD is drag coefficient and CL is lift coefficient.

To solve these equations using Euler-Cromer algorithm I need two functions $g(t,x)$ and $f(t, v)$ , such that

$$\frac{dv}{dt} = g(t, x) ; \frac{dx}{dt} = f(t, v)$$.

I really do not know how to reduce these two equations to the required functions (being a coder i am not very good at mathematics). The link to related article is : Calculations of ground stroke trajectories