'projectile from height: Pi = 3.14159265359 ' Pi must be the irrational number 3.14159265359.... ' g = 10 ' g is gravity acceleration ' ' h = 2 ' h is the height of the shooting ' ' v0 = 5 ' V0 is the initial velocity (speed) ' ' an = 45 * Pi / 180 ' an is the angle of release of the projectile ' ' a = (1 + (Tan(an)) ^ 2) * g / (2 * v0 ^ 2) b = -Tan(an) c = -h ' ' a, b and c are the constants of the resulting quadratic equation ' x1 = (-b + Sqr(b ^ 2 - 4 * a * c)) / (2 * a) x2 = (-b - Sqr(b ^ 2 - 4 * a * c)) / (2 * a) ' x1 and x2 are the soolutions of the quadratic equation ' ' MsgBox x1 MsgBox x2