GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.geeksforgeeks.org — Java Math asin() Method - GeeksforGeeks Java Math asin() MethodLast Updated : 7 May, 2025 The asin() method of java.lang.Math class, computes the arc sine also called as an inverse of a sine of a given value. This method is useful when we have the sine of an angle and we need to find the angle. This method returns the arc sine of an angle in between -pi/2 and pi/2.
Syntax of Math asin() Method
Important Points:
Examples of Java Math asin() MethodExample 1: In this example, we will try to handle out of valid range values.
Output asin(2.0) = NaN Explanation: Here, 2.0 is not a valid sine value, so asin() indicates the error with NaN. Example 2: In this example, we will convert the degrees to radians before asin().
Output asin(sin30°) in radians: 0.5235987755982988 Example 3: In this example, we will take multiple inputs in one array.
Output asin(1.0): 1.5708 rad asin(0.0): 0.0000 rad asin(-1.0): -1.5708 rad asin(0.5): 0.5236 rad Comment Explore |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |