Java .asin()
Published Jul 19, 2021Updated Jun 11, 2025
Contribute to Docs
The Math.asin() method returns the inverse sine (or arcsine) of the argument in radians.
Syntax
Math.asin(n)
n is a double between 0 and 1.
Example
The following example uses Math.asin() to return the inverse sine of 1.0:
public class Main {public static void main(String[] args) {double x = 1.0;System.out.println(Math.asin(x));// Output: 1.5707963267948966}}
Contribute to Docs
- 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.
Learn Java on Codecademy
- Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
- Includes 6 Courses
- With Professional Certification
- Beginner Friendly.75 hours
- Learn to code in Java — a robust programming language used to create software, web and mobile apps, and more.
- Beginner Friendly.17 hours