1. Post #1
    awfa3's Avatar
    April 2007
    185 Posts
    First off, I know the tangent function is math.tan.
    What I want to achieve with it is if I do this
    Code:
    math.tan( math.rad ( 23 ) ) --Returns the tangent of 23 in degrees
    and get 0.4244748162096 what is the inverse tangent function that will turn 0.4244748162096 back into 23.

  2. Post #2
    Gold Member
    raBBish's Avatar
    March 2007
    2,667 Posts
    math.deg( math.atan( num ) )

  3. Post #3
    awfa3's Avatar
    April 2007
    185 Posts
    Works perfectly, Thanks!

    Turns out I had to use radians all along.