title: Golang basic trigonometry arctan computation
body: <p>This is a Trig 101 question.  Unfortunately, I don't remember my basic trig too well (too old :).  I need to find a formula in Golang to compute the angle in degrees given the coefficient.  As an example:</p>
  
  <p>Tan(angle) = coefficient
  Angle = arctan (coefficient)</p>
  
  <p>Examples:
  Angle = arctan(0.2) = 11.31 degrees (where coefficient = 0.2)</p>
  
  <p>Angle = arctan(0.3) = 16.699 degrees (where coefficient = 0.3)</p>
  
  <p>Angle = arctan(0.5) = 26.565 degrees (where coefficient = 0.5)</p>
  
  <p>The URL below gives the calculator which is showing the correct values:</p>
  
  <p><a href="http://www.rapidtables.com/calc/math/Tan_Calculator.htm" rel="nofollow">http://www.rapidtables.com/calc/math/Tan_Calculator.htm</a></p>
  
  <p>Given these examples, how do I derive a formula written in Golang to compute the angle in degrees given the coefficient?</p>
  
  <p>Thanks in advance for your time.</p>
  
  <p>Bharat</p>