- #1
Luchekv
- 66
- 1
Basically..I have a canon that shoots a pingpong ball at 30m/s from any angle between 0-90
I've derived all my equations as can be seen below:
So the velocity equations are:
Vx(t) = (Vxo)e^(-kt/m)
Vy(t) = (Vyo+gm/k)e^(-kt/m) − gm/k
Integrate these to get X and Y as functions of time:
X(t) = ∫(Vxo)e^(-kt/m)dt = (-m/k)(Vxo)e^(-kt/m) + C3
Y(t) = ∫((Vyo+gm/k)e^(-kt/m) − gm/k)dt = (-m/k)(Vyo+gm/k)e^(-kt/m) − (gm/k)t + C4
Define the initial position as (0,0), Figure out C3 and C4:
X(0) = 0 = (-m/k)(Vxo)e^(-k(0)/m) + C3 = (-m/k)(Vxo) + C3; C3 = (m/k)(Vxo)
Y(0) = 0 = (-m/k)(Vyo+gm/k)e^(-k(0)/m) − (gm/k)(0) + C4 = (-m/k)(Vyo+gm/k) + C4; C4 = (m/k)(Vyo+gm/k)
So finally:
X(t) = (m/k)(Vxo)(1 − e^(-kt/m))
Y(t) = (m/k)(Vyo+gm/k)(1 − e^(-kt/m)) − (gm/k)t
I'm using this formula for k=CAρ/2m (Not 100% about it)
Problem is, where ever I look. The only solution to plotting this is via a computer program or excel. I can't code and the last time I used excel was in high school. If I could get a bump in the right direction as to how to go about this. It would be greatly appreciated :)
I've derived all my equations as can be seen below:
So the velocity equations are:
Vx(t) = (Vxo)e^(-kt/m)
Vy(t) = (Vyo+gm/k)e^(-kt/m) − gm/k
Integrate these to get X and Y as functions of time:
X(t) = ∫(Vxo)e^(-kt/m)dt = (-m/k)(Vxo)e^(-kt/m) + C3
Y(t) = ∫((Vyo+gm/k)e^(-kt/m) − gm/k)dt = (-m/k)(Vyo+gm/k)e^(-kt/m) − (gm/k)t + C4
Define the initial position as (0,0), Figure out C3 and C4:
X(0) = 0 = (-m/k)(Vxo)e^(-k(0)/m) + C3 = (-m/k)(Vxo) + C3; C3 = (m/k)(Vxo)
Y(0) = 0 = (-m/k)(Vyo+gm/k)e^(-k(0)/m) − (gm/k)(0) + C4 = (-m/k)(Vyo+gm/k) + C4; C4 = (m/k)(Vyo+gm/k)
So finally:
X(t) = (m/k)(Vxo)(1 − e^(-kt/m))
Y(t) = (m/k)(Vyo+gm/k)(1 − e^(-kt/m)) − (gm/k)t
I'm using this formula for k=CAρ/2m (Not 100% about it)
Problem is, where ever I look. The only solution to plotting this is via a computer program or excel. I can't code and the last time I used excel was in high school. If I could get a bump in the right direction as to how to go about this. It would be greatly appreciated :)