Will it hit the hoop? Take 7

If you just know the equation, how do you figure out if the ball goes in?