> I checked with it and it worked.

Ok, to be clear.  You should make it clear for yourself (and for others ;)) - what's a definition of `degree` you are using.  Then, it would be easy to explain which input transformations are allowed and why.