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
ZUBAIRAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
>> atan is some thing different....

It isn't

>>whereas using atan the results are

That's because the result is in radians
0
 
ZUBAIRAuthor 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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
ZUBAIRAuthor Commented:
how to convert radians?
0
 
william007Commented:
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
 
CEHJCommented:
:-)
0
 
ZUBAIRAuthor Commented:
thanks :)
0
 
william007Commented:
welcome:)
0
 
CEHJCommented:
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.

All Courses

From novice to tech pro — start learning today.