protected static double exp(double d) { return System.Math.Exp(d); } /// <summary>Absolute value.</summary>