(self, i, j, method="berkowitz")
Calculate the cofactor of an element.

        See Also
        ========

        cofactorMatrix
        minorEntry
        minorMatrix
Calculate the cofactor of an element.
Calculate the cofactor of an element .
def cofactor(self, i, j, method="berkowitz"):
        """Calculate the cofactor of an element.

        See Also
        ========

        cofactorMatrix
        minorEntry
        minorMatrix
        """
        if (i + j) % 2 == 0:
            return self.minorEntry(i, j, method)
        else:
            return -1*self.minorEntry(i, j, method)
def cofactor ( self , i , j , method = "berkowitz" ) : if ( i + j ) % 2 == 0 : return self . minorEntry ( i , j , method ) else : return - 1 * self . minorEntry ( i , j , method )