Macaulay2
»
Documentation
Packages
»
Macaulay2Doc
::
degree(RingElement,RingElement)
next
|
previous
|
forward
|
backward
| up |
index
|
toc
degree(RingElement,RingElement) -- degree with respect to a variable
Synopsis
Function:
degree
Usage:
degree(x,f)
Inputs:
x
,
a
ring element
, a variable in the same ring
f
,
a
ring element
, 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
Ways to use this method:
degree(RingElement,RingElement)
-- degree with respect to a variable