Прочитај на енглеском Уреди

Делите путем


Double.Log Method

Definition

Overloads

Log(Double, Double)

Computes the logarithm of a value in the specified base.

Log(Double)

Computes the natural (base-E logarithm of a value.

Log(Double, Double)

Source:
Double.cs
Source:
Double.cs
Source:
Double.cs

Computes the logarithm of a value in the specified base.

C#
public static double Log(double x, double newBase);

Parameters

x
Double

The value whose logarithm is to be computed.

newBase
Double

The base in which the logarithm is to be computed.

Returns

The base-newBase logarithm of x.

Implements

Applies to

.NET 10 и друге верзије
Производ Верзије
.NET 7, 8, 9, 10

Log(Double)

Source:
Double.cs
Source:
Double.cs
Source:
Double.cs

Computes the natural (base-E logarithm of a value.

C#
public static double Log(double x);

Parameters

x
Double

The value whose natural logarithm is to be computed.

Returns

The natural logarithm of x.

Implements

Applies to

.NET 10 и друге верзије
Производ Верзије
.NET 7, 8, 9, 10