Single.Log 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
Log(Single, Single) |
計算指定基底中值的對數。 |
Log(Single) |
計算值的自然 ( |
- 來源:
- Single.cs
- 來源:
- Single.cs
- 來源:
- Single.cs
計算指定基底中值的對數。
public:
static float Log(float x, float newBase) = System::Numerics::ILogarithmicFunctions<float>::Log;
C#
public static float Log (float x, float newBase);
static member Log : single * single -> single
Public Shared Function Log (x As Single, newBase As Single) As Single
參數
- x
- Single
要計算其對數的值。
- newBase
- Single
要計算對數的基底。
傳回
的基數 newBase
對數 x
。
實作
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | 7, 8, 9 |
- 來源:
- Single.cs
- 來源:
- Single.cs
- 來源:
- Single.cs
計算值的自然 (base-E
對數。
public:
static float Log(float x) = System::Numerics::ILogarithmicFunctions<float>::Log;
C#
public static float Log (float x);
static member Log : single -> single
Public Shared Function Log (x As Single) As Single
參數
- x
- Single
要計算其自然對數的值。
傳回
x
的自然對數。
實作
適用於
.NET 9 和其他版本
產品 | 版本 |
---|---|
.NET | 7, 8, 9 |