- #1

- 3

- 0

## Homework Statement

Among many other things, determine if a projectile will clear a wall. I am attempting to make a program to respond with a 'yes' or 'no'. So this is not a specific question, it is more of a general "how is this solved?" question.

The known values are initial height, initial angle, and initial velocity.

The outputs are the maximum height, time, and distance, which I have calculated and outputted correctly using equations in the textbook.

So my basic question is, I need to figure out that given a distance from a wall and height of the wall, will the projectile clear it?

## Homework Equations

dMaxHeight = dInitialHeight + (dInitialVelocity * dInitialVelocity * sin(dInitialAngle) * sin(dInitialAngle)) / (2 * dGravitationalAcceleration);

dMaxTime = (dInitialVelocity * sin(dInitialAngle)) / dGravitationalAcceleration + sqrt((2 * dMaxHeight) / dGravitationalAcceleration);

dMaxDistance = dInitialVelocity * dMaxTime * cos(dInitialAngle);

I believe that these equations are correct as I have checked them with the Java simulations.

## The Attempt at a Solution

I've sketched out the parabola and the wall, and the only thing that I can think of is to make a chart of the x and y values of the travelling object as time progresses, and test them with the height and y-coordinate of the wall. Is this even close to being correct? I hope I'm being clear of what I'm trying to figure out.

Thanks very much for your help!

- Vyl