| PolynomialEquals Method |
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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public override bool Equals(
Object o
)
Public Overrides Function Equals (
o As Object
) As Boolean
public:
virtual bool Equals(
Object^ o
) override
abstract Equals :
o : Object -> bool
override Equals :
o : Object -> bool
Parameters
- o Object
- Another polynomial.
Return Value
BooleanTrue 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