Exemplo n.º 1
0
 ///<summary>Return the polar representation of a complex type</summary>
 public static ComplexFloat Polar(ComplexFloat value)
 {
     return(new ComplexFloat(ComplexMath.Absolute(value), (float)(System.Math.Atan2(value.Imag, value.Real))));
 }
Exemplo n.º 2
0
 ///<summary>Return the euclidean norm of a complex type</summary>
 public static float Norm(ComplexFloat value)
 {
     return(ComplexMath.Absolute(value));
 }
Exemplo n.º 3
0
 ///<summary>Return the polar representation of a complex type</summary>
 public static Complex Polar(Complex value)
 {
     return(new Complex(ComplexMath.Absolute(value), System.Math.Atan2(value.Imag, value.Real)));
 }
Exemplo n.º 4
0
 ///<summary>Return the euclidean norm of a complex type</summary>
 public static double Norm(Complex value)
 {
     return(ComplexMath.Absolute(value));
 }