Class18 - PHYS 5900 Class 18 Zi-Wei Lin Manipulating Equations Example A projectile in the x-y plane has an initial speed of v0 and angle theta0 A

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PHYS 5900 Class 18 (10/05/2009) Zi-Wei Lin Manipulating Equations Example A projectile in the x-y plane has an initial speed of v0 and angle theta0 . A) Derive its vertical position y as a function of x ; B) Derive the range in x ; C) Plot y as a function of x and find the numerical value of the range for the following initial condition: v0=10 m/s, theta0=30° (note: g=9.8 m s 2 ). A) In[1]:= myEqns = 8 x '' @ t D == 0, y ' ' @ t D == - g, x ' @ D == v0 * Cos @ theta0 D , y ' @ D == v0 * Sin @ theta0 D , x @ D == 0, y @ D == < ; In[2]:= DSolve @ myEqns, 8 x @ t D , y @ t D< , t D Out[2]= :: x @ t D fi t v0 Cos @ theta0 D , y @ t D fi 1 2 I- g t 2 + 2 t v0 Sin @ theta0 DM>> In[3]:= sol = 8 x, y < == 8 x @ t D , y @ t D< . % @@ 1 DD Out[3]= 8 x, y < : t v0 Cos @ theta0 D , 1 2 I- g t 2 + 2 t v0 Sin @ theta0 DM> We now express y in terms of x by eliminating t : In[4]:= ? Solve Solve @ eqns , vars D attempts to solve an equation or set of equations for the variables vars . Solve @ eqns , vars , elims D attempts to solve the equations for vars , eliminating the variables elims . Solve[eqns, vars, elims] solves eqns for vars , eliminating the variables elims In[5]:= yxRule = Solve @ sol, y, t D Simplify Out[5]= :: y fi - g x 2 Sec @ theta0 D 2 2 v0 2 + x Tan @ theta0 D>> We now need to replace fi by == in order to get the equation for y(x) : In[6]:= FullForm @ % D Out[6]//FullForm= List @ List @ Rule @ y, Plus @ Times @ Rational @- 1, 2 D , g, Power @ v0,- 2 D , Power @ x, 2 D , Power @ Sec @ theta0 D , 2 DD , Times @ x, Tan @ theta0 DDDDDD In[7]:= Position @ % , Rule D Out[7]= 88 1, 1, 0 << In[8]:= yxRule @@ 1, 1 DD Out[8]= y fi - g x 2 Sec @ theta0 D 2 2 v0 2 + x Tan @ theta0 D In[9]:= yxRelation = Apply @ Equal, yxRule @@ 1, 1 DDD Out[9]= y- g x 2 Sec @ theta0 D 2 2 v0 2 + x Tan @ theta0 D or In[10]:= yxRule . 8 Rule fi Equal < Out[10]= :: y- g x 2 Sec @ theta0 D 2 2 v0 2 + x Tan @ theta0 D>> B) we need to find the value of x at y=0 (the range): In[11]:=...
View Full Document

This note was uploaded on 04/25/2010 for the course PHYS 5900 taught by Professor Lin during the Fall '09 term at East Carolina University .

Page1 / 7

Class18 - PHYS 5900 Class 18 Zi-Wei Lin Manipulating Equations Example A projectile in the x-y plane has an initial speed of v0 and angle theta0 A

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online