Definition at line 716 of file Math.cs.
717 {
718 if (double.IsNaN(a))
719 {
720 return a;
721 }
722 if (double.IsNaN(newBase))
723 {
724 return newBase;
725 }
726 if (newBase == 1.0)
727 {
728 return double.NaN;
729 }
730 if (a != 1.0 && (newBase == 0.0 || double.IsPositiveInfinity(newBase)))
731 {
732 return double.NaN;
733 }
734 return Log(a) /
Log(newBase);
735 }
static double Log(double d)
References System.Math.Log().