Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
COMPLEX NUMBER
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Numerics; //DEVELOPER: PANNA CHATTERJEE namespace Rextester { public class Program { public static void Main(string[] args) { // Initializing the complex: (-1.0+0.0i) Complex mycomplex = new Complex(0.0, 1.0); //Cos,Sin,Tan Console.WriteLine(Complex.Cos(mycomplex)); Console.WriteLine(Complex.Sin(mycomplex)); Console.WriteLine(Complex.Tan(mycomplex)); //Pow Console.WriteLine(Complex.Pow(Complex.One, -1)); // Instantiate a complex number from its polar coordinates. Console.WriteLine(Complex.FromPolarCoordinates(10, .524)); //Log Console.WriteLine(Complex.Log(10)); //Sqrt Complex minusOne = new Complex(-1, 0); Console.WriteLine(Complex.Sqrt(minusOne)); } } }
run
|
edit
|
history
|
help
0
Fibonacci with Given Length
Katakana Quiz
Vxksnanndjsnajajnaannannnananannaannanaannananna
GetChange
any predicate test
asxasx sxa
Subdomain regex
my cool stuff
Enums
Polygon Util