# Inverse of tan

hello everybody,

i just need to know how to find  inverse of tan or (tan-1).
Please provide me with the line of code.

thanks
###### Who is Participating?

Commented:
>> atan is some thing different....

It isn't

>>whereas using atan the results are

That's because the result is in radians
0

Commented:
0

Author Commented:
atan is some thing different....

if for example inverse of tan for 1 = 45
-1
tan    1 = 45

-1
tan    5 = 78.69

whereas using atan the results are

atan 1 = 0.785
atan 5 = 1.373

I hope now it is clear
0

Author Commented:
how to convert radians?
0

Commented:
Math.toDegrees(Math.atan(1)) will give you 45.

As Math.atan(1) will return 0.7853981633974483(in radian)
so using the Math.toDegrees method , will convert it to degree.
ie. Math.toDegree(0.7853981633974483)=45
0

Commented:
:-)
0

Author Commented:
thanks :)
0

Commented:
welcome:)
0

Commented:
You might have credited william007 for the extra info ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.