First, some background on my problem: I'm a sailor, and I'm looking to attach a rope between the base of my boat's mast and the boom. We refer to this rope as a boom vang, and its purpose is to pull the boom down. Because the boom may swing from side to side, the rope is attached at one end to the mast itself, in line with where the boom attached. The question is, where on the boom should the other end of the vang be attached to maximize the downward moment?
Here is a diagram (it's terrible - sorry), with the rope in solid blue:

The rope leads off to the sailor, who can apply tension to it, some of which will become a downward force. The other variable is the distance from the mast to where the vang attaches to the boom, L. Theta is the angle between the rope and the deck (or the boom).
It seems to me that the moment is the product of the downward force and the length of the lever that it's working on, L. Now, as L is increased, theta is decreased, reducing the downward force (compressing the boom instead). In the extreme cases, where theta is 90 degrees (parallel to the mast, thus maximum downward force, but no lever to act on), or infinitesimal (parallel to the infinitely long boom, providing a great long lever to act on but all of the force in the horizontal) there is no moment.
So, how to choose the correct angle? If I remember correctly (and I'm not sure that I do, which is why I'm here :)), the vertical component of the force should be sine(theta). Further, L should be cosine(theta). Since the moment is their product, the value for any theta should be sin(theta)*cos(theta). Is that correct? If so, the maximum should be theta = pi/4 radians, correct?
Quick disclaimer: I haven't practiced this sort of math in nigh 20 years.