Tests for equality of this polynomial and another polynomial. Two polynomials are equal if their coefficient vectors have the same dimensions and all values are equal.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public override bool Equals(
	Object o
)
Visual Basic (Declaration)
Public Overrides Function Equals ( _
	o As Object _
) As Boolean
Visual C++
public:
virtual bool Equals(
	Object^ o
) override

Parameters

o
Type: System..::.Object
Another polynomial.

Return Value

True if the coefficient vectors are of the same dimension and contain the same values; otherwise, false. Returns false if the passed object is null, or is not a Polynomial.

Remarks

The comparison of the values is done using operator== for doubles. Therefore, the values of the coefficient vectors must be exactly equal for this method to return true.

See Also