NCisCycEq

description:

iscyceq = NCisCycEq(f,g) checks whether polynomials f and g are cyclically equivalent, i.e., whether f - g is a sum of commutators.

arguments:

f and g are NCpolys representing the polynomials. If the function is called with only one parameter, g is assumed to be 0. That is, NCisCycEq(f) checks whether f is a sum of commutators .

output:

iscyceq equals 1 if polynomials f and g are cyclically equivalent and 0 otherwise

possible usage:

NCisCycEq(f,g), NCisCycEq(f)

example:

>> NCisCycEq(x^2*y*x+y*x^3,2*x*y*x^2)

ans = 1