Math.Asin() is an inbuilt Math class method which returns the angle whose sine value is given as a double value argument. If the argument is NaN, then the result will be NaN.
public static double Asin(double num)
num: It is the number that represents a sine and type of this parameter is System.Double. It must be greater than or equal to -1, but less than or equal to 1.
Return Type: Returns an angle Θ, measured in radians and its type is System.Double. Here the angle is always measured in radians, such that -π/2 ≤ Θ ≤ π/2.
Note: If the value of the num is greater than 1 or less than -1 or equals to NaN, then this method always returns NaN as result. To convert the radians(return value) to degrees multiply it by 180 / Math.PI. A positive return value always represents a counter clock-wise angle from the x-axis and a negative return value always represents a clockwise angle.
Input : Math.Asin(2) Output : NaN Input : Math.Asin(0.3584) Output : 0.366553473829125 Input : Math.Asin(0.0) Output : 0 Input : Math.Asin(-0.0) Output : 0 Input : Math.Asin(Double.PositiveInfinity) Output : NaN Input : Math.Asin(Double.NegativeInfinity) Output : NaN
Program: To illustrate the Math.Asin() method
NaN NaN 0.366553473829125 0 0 NaN NaN NaN
- Difference between Method Overriding and Method Hiding in C#
- Extension Method in C#
- C# | Method Overriding
- C# | Random.Next() Method
- C# | IsNullOrEmpty() Method
- Stack.Pop() Method in C#
- C# | Uri.ToString() Method
- C# | CompareOrdinal() Method
- C# | Uri.IsWellFormedOriginalString() Method
- C# | Uri.IsBaseOf(Uri) Method
- C# | Copy() Method
- C# | ToUpper() Method
- C# | ToLower() Method
- C# | StartsWith() Method
- Queue.Contains() Method in C#
- C# | Uri.IsHexDigit() Method
- Stack.Contains() Method in C#
- C# | Uri.FromHex() Method
- C# | Uri.GetHashCode() Method
- C# | Join Method | Set - 2
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.