asp.net.ph

Math.Log Method ( Double, Double )

System Namespace   Math Class


Returns the logarithm of a specified number in a specified base.

[ VB ]
Overloads Public Shared Function Log ( _
   ByVal a As Double, _
   ByVal newBase As Double _
) As Double

[ C# ]
public static double Log (
   double a,
   double newBase
);

[ C++ ]
public: static double Log (
   double a,
   double newBase
);

[ JScript ]
public static function Log (
   a : double,
   newBase : double
) : double;

Parameters

a
A number whose logarithm is to be found.
newBase
The base of the logarithm.

Return Value


Sign of a Returns
Positive The logarithm of a, in base, newBase; that is, lognewBase a.
Zero PositiveInfinity
Negative NaN

If a is equal to PositiveInfinity and newBase is not equal to PositiveInfinity, NegativeInfinity, or NaN, this method returns PositiveInfinity. If newBase is equal to PositiveInfinity and a is not equal to PositiveInfinity, NegativeInfinity, or NaN, this method returns 0. If both a and newBase are equal to PositiveInfinity, or a or newBase is equal to NaN or NegativeInfinity, this method returns NaN.

Remarks

Parameters a and newBase are specified as base 10 numbers.

See Also

Math Members   Math.Log Overload List Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note