Solved

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

Posted on 2010-09-06
2
946 Views
Last Modified: 2012-05-10
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
Comment
Question by:Sukhani
2 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 33609332
Math.Atan2(45, 1) * 180/Math.PI
0
 
LVL 16

Accepted Solution

by:
Peter Kwan earned 500 total points
ID: 33609371
You may use this formula:

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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The greatest common divisor (gcd) of two positive integers is their largest common divisor. Let's consider two numbers 12 and 20. The divisors of 12 are 1, 2, 3, 4, 6, 12 The divisors of 20 are 1, 2, 4, 5, 10 20 The highest number among the c…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question