Complex<T>.Equals Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

Equals(T) Compares a complex number to a real number.
Equals(Complex<T>) Compares a complex number to another complex number.
Equals(Object) Overridden. Returns whether this instance is equal to a specified object.

Equals(T)

Compares a complex number to a real number.
C#
public bool Equals(
	T other
)

Parameters

other  T
A real number.

Return Value

Boolean
true if the complex number is equal to other; otherwise false.

Implements

IEquatable<T>.Equals(T)

Equals(Complex<T>)

Compares a complex number to another complex number.
C#
public bool Equals(
	Complex<T> other
)

Parameters

other  Complex<T>
A complex value.

Return Value

Boolean
true if the complex number is equal to other; otherwise false.

Implements

IEquatable<T>.Equals(T)

Equals(Object)

Overridden. Returns whether this instance is equal to a specified object.
C#
public override bool Equals(
	Object? obj
)

Parameters

obj  Object
An object to compare with this instance.

Return Value

Boolean
true if obj is an instance of complex and equals the value of this instance; otherwise, false.

See Also