A fence 4 feet tall runs parallel to a tall building at a distance of 4 feet from the building.
What is the length of the shortest ladder that will reach from the ground over the fence to the wall of the building?
Here are some hints for finding a solution: Use the angle that the ladder makes with the ground to define the position of the ladder and draw a picture of the ladder leaning against the wall of the building and just touching the top of the fence.
If the ladder makes an angle 1.04 radians with the ground, touches the top of the fence and just reaches the wall, calculate the distance along the ladder from the ground to the top of the fence. Using these hints write a function L (x) which gives the total length of a ladder which touches the ground at an angle x , touches the top of the fence and just reaches the wall.