- #1
tejsa1
- 5
- 0
I'm writing a paper about the projectile motion with the consideration og air resistance - I have obtained two formulas:
ax = k*(vx2+vy2)0.5 * vx
ay = k*(vx2+vy2)0.5 * vy - g
(K and g are constants; K = -0,02, g =9,82)
I cand write these two as 2 different differential equations:
v'x(t) = k*(vx(t)2+vy(t)2)0.5 * vx(t)
x''(t) = k*(x(t)2+vy(t)2)0.5 * vx(t)
v'y(t) = k*(x(t)2+vy(t)2)0.5 * vy(t) - g
y''(t) = k*(x(t)2+vy(t)2)0.5 * vy(t) - g
start values:
vx(0) = 5.736
vy(0) = 8.192
x(0)=0
y(0)=0
I would like to make solve the equations numerically and get a (t,x(t))-graph and (t,y(t))-graph
My problem is I really can't see how I'm going to use Runga-kutta method on the equations - Can anyone help?
ax = k*(vx2+vy2)0.5 * vx
ay = k*(vx2+vy2)0.5 * vy - g
(K and g are constants; K = -0,02, g =9,82)
I cand write these two as 2 different differential equations:
v'x(t) = k*(vx(t)2+vy(t)2)0.5 * vx(t)
x''(t) = k*(x(t)2+vy(t)2)0.5 * vx(t)
v'y(t) = k*(x(t)2+vy(t)2)0.5 * vy(t) - g
y''(t) = k*(x(t)2+vy(t)2)0.5 * vy(t) - g
start values:
vx(0) = 5.736
vy(0) = 8.192
x(0)=0
y(0)=0
I would like to make solve the equations numerically and get a (t,x(t))-graph and (t,y(t))-graph
My problem is I really can't see how I'm going to use Runga-kutta method on the equations - Can anyone help?