Imaginary<T>.Equals Method

Definition

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

Overload List

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

Equals(Complex<T>)

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

Parameters

other  Complex<T>
A complex number.

Return Value

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

Implements

IEquatable<T>.Equals(T)

Equals(T)

Compares an imaginary 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(Imaginary<T>)

Compares an imaginary number to another complex number.
C#
public bool Equals(
	Imaginary<T> other
)

Parameters

other  Imaginary<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