The cot functions return the cotangent of their argument, measured in radians. The cotd functions return the cotangent of their argument, measured in degrees. x = 0 is an invalid argument.