protected static double abs(double d) { return System.Math.Abs(d); } /// <summary>Logarithm.</summary>