Complex.UnaryNegation(Complex) 演算子
定義
指定した複素数の加法に関する逆元を返します。Returns the additive inverse of a specified complex number.
public:
static System::Numerics::Complex operator -(System::Numerics::Complex value);
public static System.Numerics.Complex operator - (System.Numerics.Complex value);
static member ( ~- ) : System.Numerics.Complex -> System.Numerics.Complex
Public Shared Operator - (value As Complex) As Complex
パラメーター
- value
- Complex
否定する値。The value to negate.
戻り値
value
パラメーターの Real 部および Imaginary 部に -1 を乗算した結果。The result of the Real and Imaginary components of the value
parameter multiplied by -1.
注釈
メソッドは、 UnaryNegation 複素数の単項否定 (加法逆) 演算子の演算を定義します。The UnaryNegation method defines the operation of the unary negation (additive inverse) operator for complex numbers. 次のようなコードが有効になります。It enables code such as the following:
Complex c1 = new Complex(1.7, 3.9);
Complex c2 = -c1;
Dim c1 As New Complex(1.7, 3.9)
Dim c2 As Complex = -c1
結果として得られる複素数は、 Zero 元の複素数に追加されるときにの値を生成します。The resulting complex number produces a value of Zero when it is added to the original complex number. カスタム演算子をサポートしない言語では、代わりにメソッドを呼び出すことができ Negate ます。Languages that do not support custom operators can call the Negate method instead.
この演算子の同等の方法は次のようになります。 Complex.Negate(Complex)The equivalent method for this operator is Complex.Negate(Complex)