Exemple #1
0
 /// <summary>
 /// Returns the logarithm of a specified complex number in a specified base.
 /// </summary>
 /// <param name="value">A complex number.</param>
 /// <param name="baseValue">The base of the logarithm.</param>
 /// <returns>The logarithm of value in base baseValue.</returns>
 public static Complex Log(Complex value, double baseValue)
 {
     return(Log(value) / Functions.Log(baseValue));
 }
Exemple #2
0
 /// <summary>
 /// Returns the base-10 logarithm of a specified complex number.
 /// </summary>
 /// <param name="value">A complex number.</param>
 /// <returns>The base-10 logarithm of value.</returns>
 public static Complex Log10(Complex value)
 {
     return(Log(value) / Functions.Log(10.0));
 }
Exemple #3
0
 /// <summary>
 /// Returns the natural (base e) logarithm of a specified complex number.
 /// </summary>
 /// <param name="value">A complex number.</param>
 /// <returns>The natural (base e) logarithm of value.</returns>
 public static Complex Log(Complex value)
 {
     return(new Complex(Functions.Log(Absolute(value)), Argument(value)));
 }