Double - Asin

Returns the angle whose sine is the specified number.

Try it

public static void Main()
{
	double[] doubles = { 0, 0.333, 0.667, 1 };
	
  	foreach (double value in doubles)
	{
		// C# Extension Method: Double - Asin
    	Console.WriteLine("Asin({0}) = {1}", value, value.Asin());
	}
}

View Source
using System;

public static partial class Extensions
{
    /// <summary>
    ///     Returns the angle whose sine is the specified number.
    /// </summary>
    /// <param name="d">
    ///     A number representing a sine, where  must be greater than or equal to -1, but less than or equal
    ///     to 1.
    /// </param>
    /// <returns>
    ///     An angle, ?, measured in radians, such that -?/2 ????/2 -or-  if  &lt; -1 or  &gt; 1 or  equals .
    /// </returns>
    public static Double Asin(this Double d)
    {
        return Math.Asin(d);
    }
}