.Atan()
Math.Atan() is a static method that calculates the inverse tangent of a given number, in radians.
Syntax
Math.Atan(x);
- The
Math.Atan()
method takes one double as an argument and returns a double. - Using this method requires the
System
namespace.
Codebyte Example
The following example uses Math.Atan()
to return the arctangent of a right angled triangle, where the side opposite the angle is equal to 7, and the side adjacent is 5.
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.