.atan()
StevenSwiniarski474 total contributions
Published Jul 19, 2021Updated Aug 24, 2022
Contribute to Docs
The Math.atan()
method returns the inverse tangent (or arctangent) of the argument in radians.
Syntax
Math.atan(n)
n
is a double
whose arctangent is returned.
Example
The following example uses Math.atan()
to return the inverse tangent of 1.0
:
public class Main {public static void main(String[] args) {double x = 1.0;System.out.println(Math.atan(x));// Output: 0.7853981633974483}}
All contributors
- StevenSwiniarski474 total contributions
- christian.dinh2476 total contributions
- Anonymous contributorAnonymous contributor3071 total contributions
- StevenSwiniarski
- christian.dinh
- Anonymous contributor
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.