Question
Mathcad Community Challenge May 2023 - Optimize Trajectory for Maximum Horizontal Distance
A ball with a mass of 1 kilogram is at the top of a frictionless ramp 10 meters above the ground. The ball rolls down the incline and launches from a height of 2 meters and an angle of 30 degrees above the ground.

(This picture was created in Creo.)
- Create a function that calculates the horizontal distance as a function of initial height, launch height, and launch angle.
- Calculate the horizontal distance the ball will land from the end of the ramp.
- Solve for the angle that will optimize the horizontal distance.
- How will the horizontal distance change if this were performed on the Moon instead of on the Earth’s surface? Assume the acceleration due to gravity on the Moon’s surface is 1/6 that of Earth.
- Use the Chart Component to depict how the horizontal landing distance changes as a function of angle.
- Use a 3D Plot to show how the horizontal landing distance changes as a function of ramp height and launch angle. Assume the ball starts at a height of 10 meters.
The worksheet should contain sufficient documentation to stand on its own; someone unfamiliar with the initial problem should be able to understand what is being calculated.

