How can you Calculate Inverse Tangent in vb .net? I found math.tan but I need the inverse.
Printable View
How can you Calculate Inverse Tangent in vb .net? I found math.tan but I need the inverse.
Math.Atan
That didnt work, are you sure Atan is inverse tangent?
Im doing math.Atan(3/20) -> Should equal 8.53 but im getting 0.14
Read the documentation.
Which documentation?
You're using the Math.Atan method. It's not doing what you expect. Read the help documentation for the Math.Atan method. Do that whenever you use a type or member and you don't get the result you expect. There thousands of man-hours of help files at your fingertips in the MSDN library. They should always be your first stop for assistance.
I just figured it out, the problem is its giving it to me in Radians, all i need to do is convert to degrees.
Deg = Rad * 180/PI
Just as the documentation says.
Great