eq

description:

iseq=eq(f, g) is called for the syntax 'f == g' and compares matrices of NCpolys f and g elementwise. It returns a matrix of the same size with entries set to logical 1 where the polynomials are equal andentries set to 0 where they are not. Matrices f and g must have the same dimensions unless one is a 1x1 matrix. A scalar can be compared with any size array.

arguments:

f and g are NCpolys representing polynomials or matrices of NCpolys with matching dimensions.

output:

matrix with elements equal to logical true (1) or false (0)

possible usage:

f == g, eq(f, g)

example:

>> [x*x-x*y-y*x+y*y,x+y]==[(x-y)^2,x-y]

ans = 1     0