Calculating angle for trajectory with exit position not at 0,0

AI Thread Summary
To calculate the angle for a projectile to hit a target when exiting from a point other than (0,0), the projectile's exit coordinates must be adjusted based on the cannon's rotation. The modified equations replace x and y with expressions that account for the distance from the cannon's tip, incorporating the angle of the cannon. The resulting equation can be rearranged into a quadratic form, allowing the use of the Quadratic Formula to solve for the angle. After determining the value of x, the angle theta can be found using the inverse tangent function. This method provides a systematic approach to solving the trajectory problem.
xal
Messages
1
Reaction score
0
I'd like to calculate the angle to shoot a projectile from a cannon in order to hit a target. However, the position that the projectile will be exiting from will not be at 0, 0 -- it will vary according to the angle of the cannon itself. The projectile will be exiting from the tip of the cannon, but the cannon will be rotated about a different point (both points, as well as the target position, will be on the same plane though).

If the projectile was exiting from 0, 0, then I could use this:
\tan \left( \theta \right) ={\frac {{{\it v0}}^{2}+\mbox {{\tt `\&amp;+-`}<br /> } \left( \sqrt {{{\it v0}}^{4}-{g}^{2}{x}^{2}-2\,gy{{\it v0}}^{2}}<br /> \right) }{gx}}<br />

However, in this case, I was considering replacing x and y with x-l\cos \left( \theta \right) and y-l\sin \left( \theta \right) respectively, where l would be the distance away the tip.

That results in this:
\tan \left( \theta \right) ={\frac {{{\it v0}}^{2}+\sqrt {{{\it v0}}^{<br /> 4}-g \left( g \left( x-l\cos \left( \theta \right) \right) ^{2}+2\,<br /> \left( y-l\sin \left( \theta \right) \right) {{\it v0}}^{2} \right) <br /> }}{g \left( x-l\cos \left( \theta \right) \right) }}<br /> <br /> <br />

Different form:
-1/2\,{\frac {g \left( x-l\cos \left( \theta \right) \right) ^{2}<br /> \left( \tan \left( \theta \right) \right) ^{2}}{{v}^{2}}}+x\tan<br /> \left( \theta \right) -1/2\,{\frac {g \left( x-l\cos \left( \theta<br /> \right) \right) ^{2}}{{v}^{2}}}-y+l\sin \left( \theta \right) =0<br />

But I am not sure if this is a way to do it, and I am not sure to go about solving for the angle either.
 
Physics news on Phys.org
Any help would be greatly appreciated! The above equation can be solved for theta by using the Quadratic Formula. Specifically, you can rearrange the equation to the form ax^2 + bx + c = 0 and then solve for x. Once you have x, you can take its inverse tangent to find the angle theta.
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top