module Math # Cotangens of +x+ def self.cot(x) tan((PI * 0.5) - x) end end