Export (0) Print
Expand All

Math.Log Method (Double)

Returns the natural (base e) logarithm of a specified number.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

[SecuritySafeCriticalAttribute]
public static double Log(
	double d
)

Parameters

d
Type: System.Double
A number whose logarithm is to be found.

Return Value

Type: System.Double
One of the values in the following table.

Sign of d

Returns

Positive

The natural logarithm of d; that is, ln d, or log e d

Zero

NegativeInfinity

Negative

NaN

Equal to NaN

NaN

Equal to PositiveInfinity

PositiveInfinity

Parameter d is specified as a base 10 number.

The following example uses Log to evaluate certain logarithmic identities for selected values.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft