?
Solved

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

Posted on 2010-09-06
2
Medium Priority
?
1,007 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 total points
ID: 33609371
You may use this formula:

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

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

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

Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

777 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