• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1062
  • Last Modified:

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
0
Sukhani
Asked:
Sukhani
1 Solution
 
ozoCommented:
Math.Atan2(45, 1) * 180/Math.PI
0
 
Peter KwanCommented:
You may use this formula:

System.Math.Atan(45) * 180 / System.Math.PI
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now