Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }