title: Using Sin-1 or inverse sin in python
body: <p>Here is my code:</p>
  
  <pre><code># point of intersection between opposite and hypotenuse
  
  x,y  =    pygame.mouse.get_pos()
  
  
  # using formula for length of line
  
  lenline1 = (x-x)**2 + (300-y)**2
  lenline2 = (x-700)**2 + (y-300)**2
  
  opposite = math.sqrt(lenline1)
  
  adjacent = math.sqrt(lenline2)
  
  # Converting length of lines to angle
  
  PQ = opposite/adjacent
  k = math.sin(PQ)
  j = math.asin(k)
  
  print(j)  
  </code></pre>
  
  <p>I'm not getting the results I expected, although after messing around with it I got close but it wasn't quite right. Could someone please tell me what I'm doin wrong. I have two lines:
  opposite and adjacent
  And I wish to get the angle using the inverse of sin. What am I doing wrong. I'm only a beginner so  don't give too detailed info. I can't imagine this is hard to do.</p>
  
  <p>Thanks.</p>