function value = cot ( angle ) %% COT returns the cotangent of an angle. % % Definition: % % COT ( THETA ) = COS ( THETA ) / SIN ( THETA ) % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 23 July 2004 % % Author: % % John Burkardt % % Parameters: % % Input, real ANGLE, the angle, in radians. % % Output, real VALUE, the cotangent of the angle. % value = cos ( angle ) / sin ( angle ); return end