# degree(RingElement,RingElement) -- degree with respect to a variable

## Synopsis

• Function: degree
• Usage:
degree(x,f)
• Inputs:
• x, , a variable in the same ring
• f, , in a polynomial ring R
• Outputs:
• an integer, highest power of x occurring in f

## Description

 i1 : R = QQ[a..d]; i2 : degree(b, a*b^5+b^7-3*a^10-3) o2 = 7