StrictMath asin() Method in Java With Examples Last Updated : 19 Jul, 2018 Comments Improve Suggest changes Like Article Like Report The java.lang.StrictMath.asin() is an inbuilt method of StrictMath class which is used to return the arc sine of a specified value. The returned angle is in within the range of -pi/2 and pi/2. The method gives rise to two special results: If the absolute value of the argument is greater than 1 or the argument is itself a NaN then the result is also NaN. If the passed argument is 0, then the output is also 0 with the same sign as the argument. Syntax : public static double asin(double val) Parameters: This method accepts one parameter val of double type and refers to the value whose arc sine is to be returned. Return Value : The method returns the arc sine value of the argument. Examples : Input: val = 0.72 Output: 0.80380231893303 Input: val = 7.0 Output: NAN Input: val = 0.0 Output: 0.0 Below programs illustrate the java.lang.StrictMath.asin() method: Program 1: java // Java program to illustrate the // java.lang.StrictMath.asin() import java.lang.*; public class Geeks { public static void main(String[] args) { double val1 = 0.65, val2 = 3.00, val3 = 0; double asinvalue = StrictMath.asin(val1); System.out.println(" The arc sine value is = "+ asinvalue); asinvalue = StrictMath.asin(val2); System.out.println("The arc sine value is = "+ asinvalue); asinvalue = StrictMath.asin(val3); System.out.println("The arc sine value is = "+ asinvalue); } } Output: The arc sine value is = 0.7075844367253556 The arc sine value is = NaN The arc sine value is = 0.0 Program 2: java // Java program to illustrate the // java.lang.StrictMath.asin() import java.lang.*; public class Geeks { public static void main(String[] args) { double val1 = -0.85, val2 = -2.00, val3 = 0; double asinvalue = StrictMath.asin(val1); System.out.println(" The arc sine value is = "+ asinvalue); asinvalue = StrictMath.asin(val2); System.out.println("The arc sine value is = "+ asinvalue); asinvalue = StrictMath.asin(val3); System.out.println("The arc sine value is= "+ asinvalue); } } Output: The arc sine value is = -1.015985293814825 The arc sine value is = NaN The arc sine value is= 0.0 Create Quiz Comment A ankita_chowrasia Follow 0 Improve A ankita_chowrasia Follow 0 Improve Article Tags : Java Java-lang package Java-Functions Java-StrictMath Explore Java BasicsIntroduction to Java3 min readJava Programming Basics9 min readJava Methods6 min readAccess Modifiers in Java4 min readArrays in Java7 min readJava Strings7 min readRegular Expressions in Java3 min readOOP & InterfacesClasses and Objects in Java5 min readAccess Modifiers in Java4 min readJava Constructors4 min readJava OOP(Object Oriented Programming) Concepts10 min readJava Packages2 min readJava Interface7 min readCollectionsCollections in Java12 min readCollections Class in Java13 min readCollection Interface in Java4 min readIterator in Java4 min readJava Comparator Interface5 min readException HandlingJava Exception Handling6 min readJava Try Catch Block4 min readJava final, finally and finalize4 min readChained Exceptions in Java3 min readNull Pointer Exception in Java5 min readException Handling with Method Overriding in Java4 min readJava AdvancedJava Multithreading Tutorial3 min readSynchronization in Java7 min readFile Handling in Java4 min readJava Method References9 min readJava 8 Stream Tutorial7 min readJava Networking6 min readJDBC Tutorial5 min readJava Memory Management3 min readGarbage Collection in Java6 min readMemory Leaks in Java3 min readPractice JavaJava Interview Questions and Answers15+ min readJava Programs - Java Programming Examples7 min readJava Exercises - Basic to Advanced Java Practice Programs with Solutions5 min readJava Quiz1 min readJava Project Ideas For Beginners and Advanced15+ min read Like