Get the angle that is the arc sine of a complex number in CSharp
Description
The following code shows how to get the angle that is the arc sine of a complex number.
Example
//from w ww. jav a 2 s . c o m
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
Complex[] values = { new Complex(2.3, 1.4),
new Complex(2.3, -1.4) };
foreach (Complex value in values)
Console.WriteLine("Sin(Asin({0})) = {1}",
value, Complex.Sin(Complex.Asin(value)));
}
}
The code above generates the following result.