Q:

How to convert tan radian to degree

I am trying to get tan degree of a number and since the language I'm using Swift only gives radian I have to convert the answer.  
My problem is
tan(1) correctly gives me 1.5574 but using the formula I found online to convert to degrees
1.55574 * 180 / pi
doesn't give me 0.0175 that Im looking for.

A:

Degrees to radians is (x * pi / 180).  However, you need to convert before passing the argument into tan.
math.tan(1 * math.pi / 180)
0.017455064928217585

