public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }
            GenericPolynomialExtensionField other = obj as GenericPolynomialExtensionField;

            if (null == other)
            {
                return(false);
            }
            return(subfield.Equals(other.subfield) && minimalPolynomial.Equals(other.minimalPolynomial));
        }
Esempio n. 2
0
    public override bool Equals(object obj)
    {
        if (this == obj)
        {
            return(true);
        }
        GenericPolynomialExtensionField genericPolynomialExtensionField = obj as GenericPolynomialExtensionField;

        if (genericPolynomialExtensionField == null)
        {
            return(false);
        }
        if (subfield.Equals(genericPolynomialExtensionField.subfield))
        {
            return(minimalPolynomial.Equals(genericPolynomialExtensionField.minimalPolynomial));
        }
        return(false);
    }