Browse Source

added simple log impl

la-knuth
Marcus Cuda 17 years ago
parent
commit
6f64dc0b3a
  1. 6
      src/Numerics/Complex.cs

6
src/Numerics/Complex.cs

@ -1539,7 +1539,11 @@ namespace MathNet.Numerics
/// <returns>The logarithm of value in base baseValue.</returns> /// <returns>The logarithm of value in base baseValue.</returns>
public static Complex Log(Complex value, double baseValue) public static Complex Log(Complex value, double baseValue)
{ {
throw new NotImplementedException(); if( baseValue == 1.0)
{
return double.NaN;
}
return value.NaturalLogarithm() / Math.Log(baseValue, Math.E);
} }
/// <summary> /// <summary>

Loading…
Cancel
Save