# Complex.Reciprocal(Complex) 메서드

## 정의

복소수의 역수를 반환합니다.Returns the multiplicative inverse of a complex number.

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

#### 매개 변수

value
Complex

복소수입니다.A complex number.

#### 반환

`value`의 역수입니다.The reciprocal of `value`.

## 예제

다음 예제에서는 Reciprocal 메서드를 사용 하 여 여러 복소수의 상호 값을 계산 합니다.The following example uses the Reciprocal method to calculate the reciprocal values of several complex numbers. 또한 복소수와 해당 역 수를 곱한 결과가 Complex.One것을 보여 줍니다.It also demonstrates that the result of multiplying a complex number by its reciprocal is Complex.One.

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

public class Example
{
public static void Main()
{
Complex[] values = { new Complex(1, 1),
new Complex(-1, 1),
new Complex(10, -1),
new Complex(3, 5) };
foreach (Complex value in values)
{
Complex r1 = Complex.Reciprocal(value);
Console.WriteLine("{0:N0} x {1:N2} = {2:N2}",
value, r1, value * r1);
}
}
}
// The example displays the following output:
//       (1, 1) x (0.50, -0.50) = (1.00, 0.00)
//       (-1, 1) x (-0.50, -0.50) = (1.00, 0.00)
//       (10, -1) x (0.10, 0.01) = (1.00, 0.00)
//       (3, 5) x (0.09, -0.15) = (1.00, 0.00)
``````
``````Imports System.Numerics

Module Example
Public Sub Main()
Dim values() As Complex = { New Complex(1, 1),
New Complex(-1, 1),
New Complex(10, -1),
New Complex(3, 5) }
For Each value As Complex In values
Dim r1 As Complex = Complex.Reciprocal(value)
Console.WriteLine("{0:N0} x {1:N2} = {2:N2}",
value, r1, value * r1)
Next
End Sub
End Module
' The example displays the following output:
'       (1, 1) x (0.50, -0.50) = (1.00, 0.00)
'       (-1, 1) x (-0.50, -0.50) = (1.00, 0.00)
'       (10, -1) x (0.10, 0.01) = (1.00, 0.00)
'       (3, 5) x (0.09, -0.15) = (1.00, 0.00)
``````

## 설명

숫자 x 의 역 또는 곱하기 역은 숫자 y 입니다. 여기서 xy 로 곱하여 1을 생성 합니다.The reciprocal, or multiplicative inverse, of a number x is a number y where x multiplied by y yields 1. 복소수의 역 수는 두 숫자를 곱할 때 Complex.One를 생성 하는 복소수입니다.The reciprocal of a complex number is the complex number that produces Complex.One when the two numbers are multiplied. 복소수를 + bi로 나타내는 경우 해당 역은 a/(a2+ b2) +-b/(a2 + b2) 식으로 표현 됩니다.If a complex number is represented by a +bi, its reciprocal is represented by the expression a/(a2+b2) + -b/(a2 + b2).

값이 Complex.Zero이면 메서드는 Complex.Zero반환 합니다.If value is Complex.Zero, the method returns Complex.Zero. 그렇지 않으면 Complex.One/`value`식의 결과를 반환 합니다.Otherwise, it returns the result of the expression Complex.One/`value`.