How to calculate Arc Tangent / Inverse Tangent in .net ?

Hello Guys,

I need a small code in VB.NET which gives me Arc Tangent / Inverse of tangent. For example : ArcTangent(45) should return a value of 88.7270.

I did some search but couldn't come up with a inbuilt .net function or algorithm.

I would be grateful if anyone can help me out here.

Thank you,

Cheers,
Saurabh
SukhaniAsked:
Who is Participating?
 
Peter KwanAnalyst ProgrammerCommented:
You may use this formula:

System.Math.Atan(45) * 180 / System.Math.PI
0
 
ozoCommented:
Math.Atan2(45, 1) * 180/Math.PI
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.