title: JavaScript: cotangent and arccotangent
body: <p>I had searched on the internet and I could not find the method of the <code>Math</code> object that returns the <code>ctg</code> and <code>arcctg</code> of an angle. Is there such a method or should I just create my own function using these mathematical formulas:</p>
  
  <p><a href="https://i.stack.imgur.com/Ay2Ko.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/Ay2Ko.gif" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ZSyi6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZSyi6.png" alt="enter image description here"></a></p>