Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 4215

Macaulay2-1.3.1-8.fc15.i686.rpm

<?xml version="1.0" encoding="utf-8" ?>  <!-- for emacs: -*- coding: utf-8 -*- -->
<!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN"	 "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><title>degree(RingElement)</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_degree_lp__Ring__Element_cm__Ring__Element_rp.html">next</a> | <a href="_degree_lp__Ring_rp.html">previous</a> | <a href="_degree_lp__Ring__Element_cm__Ring__Element_rp.html">forward</a> | <a href="_degree_lp__Ring_rp.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div>

    </td>
  </tr>
</table>
<hr/>
<div><h1>degree(RingElement)</h1>
<div class="single"><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>degree f</tt></div>
</dd></dl>
</div>
</li>
<li><span>Function: <a href="_degree.html" title="">degree</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span>, a <a href="___Ring__Element.html">ring element</a>or <a href="___Vector.html">vector</a></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___List.html">list</a></span>, the degree or multidegree of <tt>f</tt></span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>In Macaulay2, the degree of a polynomial is a list of integers.  This is to accomodate polynomial rings having multigradings.  The usual situation is when the ring has the usual grading: each variable has length 1.<table class="examples"><tr><td><pre>i1 : R = QQ[a..d];</pre>
</td></tr>
<tr><td><pre>i2 : degree (a^3-b-1)^2

o2 = {6}

o2 : List</pre>
</td></tr>
</table>
When not dealing with multigraded rings, obtaining the degree as a number is generally more convenient:<table class="examples"><tr><td><pre>i3 : first degree (a^3-b-1)^2

o3 = 6</pre>
</td></tr>
</table>
<table class="examples"><tr><td><pre>i4 : S = QQ[a..d,Degrees=>{1,2,3,4}];</pre>
</td></tr>
<tr><td><pre>i5 : first degree (a+b+c^3)

o5 = 9</pre>
</td></tr>
</table>
<table class="examples"><tr><td><pre>i6 : T = QQ[a..d,Degrees=>{{0,1},{1,0},{-1,1},{3,4}}];</pre>
</td></tr>
<tr><td><pre>i7 : degree c

o7 = {-1, 1}

o7 : List</pre>
</td></tr>
</table>
In a multigraded ring, the degree of a polynomial whose terms have different degrees is perhaps non-intuitive: it is the maximum (in each of the component degree) over each term:<table class="examples"><tr><td><pre>i8 : degree c^5

o8 = {-5, 5}

o8 : List</pre>
</td></tr>
<tr><td><pre>i9 : degree d

o9 = {3, 4}

o9 : List</pre>
</td></tr>
<tr><td><pre>i10 : degree (c^5+d)

o10 = {3, 5}

o10 : List</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_is__Homogeneous.html" title="whether something is homogeneous (graded)">isHomogeneous</a> -- whether something is homogeneous (graded)</span></li>
<li><span><a href="_degree__Length.html" title="the number of degrees">degreeLength</a> -- the number of degrees</span></li>
</ul>
</div>
</div>
</body>
</html>