Sophie

Sophie

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

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>topCoefficients -- first variable and its coefficient of a polynomial or matrix</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_top__Components.html">next</a> | <a href="_to__Lower.html">previous</a> | <a href="_top__Components.html">forward</a> | <a href="_to__Lower.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>topCoefficients -- first variable and its coefficient of a polynomial or matrix</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>(lf, cf) = topCoefficients f</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span> or <span>a <a href="___Matrix.html">matrix</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><tt>lf</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span>, or <span>a <a href="___Matrix.html">matrix</a></span>, the power of the lowest index variable occurring in f, if f is a ring element, or the one row matrix of these powers for each column, if f is a matrix.</span></li>
<li><span><tt>cf</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span>, or <span>a <a href="___Matrix.html">matrix</a></span>, the cofficient of lf in f, if f is a ring element, or the matrix of these coefficients for each column of f</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><table class="examples"><tr><td><pre>i1 : A = ZZ[x]

o1 = A

o1 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i2 : (lf,cf) = topCoefficients (7*x^4-13*x^3+x+1)

       4
o2 = (x , 7)

o2 : Sequence</pre>
</td></tr>
<tr><td><pre>i3 : v = first support lf

o3 = x

o3 : A</pre>
</td></tr>
<tr><td><pre>i4 : e = first degree lf

o4 = 4</pre>
</td></tr>
</table>
The polynomial ring may have more variables.<table class="examples"><tr><td><pre>i5 : B = ZZ[x,y,z]

o5 = B

o5 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i6 : f = y^4*(3*z^3-z^2-1) - y^3*z^7 + y + z^12

      12    3 7     4 3    4 2    4
o6 = z   - y z  + 3y z  - y z  - y  + y

o6 : B</pre>
</td></tr>
<tr><td><pre>i7 : (lf,cf) = topCoefficients f

       4    3    2
o7 = (y , 3z  - z  - 1)

o7 : Sequence</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_pseudo__Remainder.html" title="compute the pseudo-remainder">pseudoRemainder</a> -- compute the pseudo-remainder</span></li>
</ul>
</div>
<div class="waystouse"><h2>Ways to use <tt>topCoefficients</tt> :</h2>
<ul><li>topCoefficients(Matrix)</li>
<li>topCoefficients(RingElement)</li>
</ul>
</div>
</div>
</body>
</html>