on Mar 23rd, 2011, 9:54pm, Guest-Kendall Down  wrote:| | Does anyone have a formula for calculating the path of a canonball given angle of gun and muzzle velocity? | 
 | 
There's a formula here:
http://en.wikipedia.org/wiki/Trajectory

(where v0 is the initial speed, theta is the angle of elevation and g is the acceleration due to gravity).
Or in BASIC code:
 Code:y = - (x^2) * g / COS(theta)^2 / (2 * v0^2) + x * TAN(theta) 
Or in an entire program:
 Code:      MODE 8
      
      v0 = 110
      g = 9.8
      theta = RAD(60)
      
      a = TAN(theta)
      b = g / COS(theta)^2 / (2 * v0^2)
      
      FOR x = 0 TO 1278 STEP 2
        y = x * a - x^2 * b
        DRAW x,y
      NEXT 
Richard.