Sophie

Sophie

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

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>exponents -- list the exponents in a polynomial</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Expression.html">next</a> | <a href="_expm1.html">previous</a> | <a href="___Expression.html">forward</a> | <a href="_expm1.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>exponents -- list the exponents in a polynomial</h1>
<div class="single"><h2>Description</h2>
<div><tt>exponents m</tt> -- for a monomial <tt>m</tt> provides the list of exponents.<br/><tt>exponents f</tt> -- for a polynomial <tt>f</tt> provides a list whose elements are the lists of exponents of the terms of <tt>f</tt>.<p/>
<table class="examples"><tr><td><pre>i1 : R = ZZ/101[x,y,z];</pre>
</td></tr>
<tr><td><pre>i2 : exponents (f = x^2 - 7 + x*y*z^11 + y)

o2 = {{1, 1, 11}, {2, 0, 0}, {0, 1, 0}, {0, 0, 0}}

o2 : List</pre>
</td></tr>
<tr><td><pre>i3 : leadMonomial f

          11
o3 = x*y*z

o3 : R</pre>
</td></tr>
<tr><td><pre>i4 : exponents leadMonomial f

o4 = {{1, 1, 11}}

o4 : List</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>Ways to use <tt>exponents</tt> :</h2>
<ul><li>exponents(MonoidElement)</li>
<li>exponents(RingElement)</li>
</ul>
</div>
</div>
</body>
</html>