The sector, also known as a sector rule, proportional compass, or military compass, was a major calculating instrument in use from the end of the sixteenth century until the nineteenth century. It is an instrument consisting of two rulers of equal length joined by a hinge. A number of scales are inscribed upon the instrument which facilitate various mathematical calculations. It was used for solving problems in proportion, multiplication and division, geometry, and trigonometry, and for computing various mathematical functions, such as square roots and cube roots. Its several scales permitted easy and direct solutions of problems in gunnery, surveying and navigation. The sector derives its name from the fourth proposition of the sixth book of Euclid, where it is demonstrated that similar triangles have their like sides proportional. Some sectors also incorporated a quadrant, and sometimes a clamp at the end of one leg which allowed the device to be used as a gunner's quadrant.