예제 #1
0
 /// <summary>
 /// Natural Logartihm for complex numbers
 /// </summary>
 /// <param name="number"></param>
 /// <returns></returns>
 public static ComplexF Log(ComplexF number)
 {
     return ComplexF.CreateOrthogonal((float)System.Math.Log(number.Norm), number.Argument);
 }
예제 #2
0
 /// <summary>
 /// Subtracts a complex number from this
 /// </summary>
 /// <param name="number"></param>
 public void Subtract(ComplexF number)
 {
     Real -= number.Real;
     Imag -= number.Imag;
 }
예제 #3
0
 /// <summary>
 /// Exponentiates a complex by a real number
 /// </summary>
 /// <returns></returns>
 public static ComplexF Pow(ComplexF number, float scalar)
 {
     number.Pow(scalar);
     return number;
 }
예제 #4
0
 /// <summary>
 /// Adds a complex number to this
 /// </summary>
 /// <param name="number"></param>
 public void Add(ComplexF number)
 {
     Real += number.Real;
     Imag += number.Imag;
 }