# Complex.LogComplex.LogComplex.LogComplex.Log Method

## オーバーロード

 Log(Complex) Log(Complex) Log(Complex) Log(Complex) 指定した複素数の自然 (底 `e`) 対数を返します。Returns the natural (base `e`) logarithm of a specified complex number. Log(Complex, Double) Log(Complex, Double) Log(Complex, Double) Log(Complex, Double) 指定した複素数の指定した底での対数を返します。Returns the logarithm of a specified complex number in a specified base.

## Log(Complex)Log(Complex)Log(Complex)Log(Complex)

``````public:
static System::Numerics::Complex Log(System::Numerics::Complex value);``````
``public static System.Numerics.Complex Log (System.Numerics.Complex value);``
``static member Log : System.Numerics.Complex -> System.Numerics.Complex``
``Public Shared Function Log (value As Complex) As Complex``

#### パラメーター

value
Complex Complex Complex Complex

#### 戻り値

`value` の自然 (底 `e`) 対数。The natural (base `e`) logarithm of `value`.

### 例

``````using System;
using System.Numerics;

public class Example
{
public static void Main()
{
Complex[] values = { new Complex(1.53, 9.26),
new Complex(2.53, -8.12),
new Complex(-2.81, 5.32),
new Complex(-1.09, -3.43),
new Complex(Double.MinValue/2, Double.MinValue/2) };
foreach (Complex value in values)
Console.WriteLine("Exp(Log({0}) = {1}", value,
Complex.Exp(Complex.Log(value)));
}
}
// The example displays the following output:
//       Exp(Log((1.53, 9.26)) = (1.53, 9.26)
//       Exp(Log((2.53, -8.12)) = (2.53, -8.12)
//       Exp(Log((-2.81, 5.32)) = (-2.81, 5.32)
//       Exp(Log((-1.09, -3.43)) = (-1.09, -3.43)
//       Exp(Log((-8.98846567431158E+307, -8.98846567431158E+307)) = (-8.98846567431161E+307, -8.98846567431161E+307)
``````
``````Imports System.Numerics

Module Example
Public Sub Main()
Dim values() As Complex = { New Complex(1.53, 9.26),
New Complex(2.53, -8.12),
New Complex(-2.81, 5.32),
New Complex(-1.09, -3.43),
New Complex(Double.MinValue/2, Double.MinValue/2) }
For Each value As Complex In values
Console.WriteLine("Exp(Log({0}) = {1}", value,
Complex.Exp(Complex.Log(value)))
Next
End Sub
End Module
' The example displays the following output:
'      Exp(Log((1.53, 9.26)) = (1.53, 9.26)
'      Exp(Log((2.53, -8.12)) = (2.53, -8.12)
'      Exp(Log((-2.81, 5.32)) = (-2.81, 5.32)
'      Exp(Log((-1.09, -3.43)) = (-1.09, -3.43)
'      Exp(Log((-8.98846567431158E+307, -8.98846567431158E+307)) = (-8.98846567431161E+307, -8.98846567431161E+307)
``````

こちらもご覧ください

## Log(Complex, Double)Log(Complex, Double)Log(Complex, Double)Log(Complex, Double)

``````public:
static System::Numerics::Complex Log(System::Numerics::Complex value, double baseValue);``````
``public static System.Numerics.Complex Log (System.Numerics.Complex value, double baseValue);``
``static member Log : System.Numerics.Complex * double -> System.Numerics.Complex``
``Public Shared Function Log (value As Complex, baseValue As Double) As Complex``

#### パラメーター

value
Complex Complex Complex Complex

baseValue
Double Double Double Double

#### 戻り値

`value` の底 `baseValue` での対数。The logarithm of `value` in base `baseValue`.