/// <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); }
/// <summary> /// Subtracts a complex number from this /// </summary> /// <param name="number"></param> public void Subtract(ComplexF number) { Real -= number.Real; Imag -= number.Imag; }
/// <summary> /// Exponentiates a complex by a real number /// </summary> /// <returns></returns> public static ComplexF Pow(ComplexF number, float scalar) { number.Pow(scalar); return number; }
/// <summary> /// Adds a complex number to this /// </summary> /// <param name="number"></param> public void Add(ComplexF number) { Real += number.Real; Imag += number.Imag; }