Beispiel #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))));
 }
Beispiel #2
0
 ///<summary>Return the euclidean norm of a complex type</summary>
 public static float Norm(ComplexFloat value)
 {
     return(ComplexMath.Absolute(value));
 }
Beispiel #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)));
 }
Beispiel #4
0
 ///<summary>Return the euclidean norm of a complex type</summary>
 public static double Norm(Complex value)
 {
     return(ComplexMath.Absolute(value));
 }