Of course it is unless this method does not get functions like 4**x + 5**(2*x) to calculate the degree of this.