Mono Class Library: System.Math Overview | Members

System.Math.Log Method

Returns the logarithm of the specified double in the specified base. [Edit]

public static double Log (double a, double newBase)

Parameters

a
A double whose logarithm is to be found. [Edit]
newBase
A double containing the value of the base of the logarithm. [Edit]

Returns

Returns a double whose value is as follows:

ConditionReturns
a > 0, newBase > 0, but newBase != 1lognewBasea
a < 0double.NaN
newBase < 0double.NaN
newBase == 0, a != 1double.NaN
newBase == 0, a == 1Zero
0 < newBase < 1, a == 0double.PositiveInfinity
0 < newBase < 1, a == +infinitydouble.NegativeInfinity
newBase == 1double.NaN
newBase > 1, a == 0double.NegativeInfinity
newBase > 1, a == +infinitydouble.PositiveInfinity
newBase == +infinity, a != 1double.NaN
newBase == +infinity, a == 1Zero
a == NaN or newBase == NaNdouble.NaN
[Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0