Sophie

Sophie

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

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>coefficient -- coefficient of a monomial</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Coefficient__Ring.html">next</a> | <a href="___Codimension__Limit.html">previous</a> | <a href="___Coefficient__Ring.html">forward</a> | <a href="___Codimension__Limit.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>coefficient -- coefficient of a monomial</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>coefficient(m,f)</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>m</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span>, a monomial</span></li>
<li><span><tt>f</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span>, in the same ring <tt>R</tt> as <tt>m</tt></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>a <a href="___Ring__Element.html">ring element</a></span>, the coefficient of the monomial <tt>m</tt> in <tt>f</tt> as an element of the coefficient ring of <tt>R</tt></span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><table class="examples"><tr><td><pre>i1 : R = GF(25,Variable=>a)[x,y,z];</pre>
</td></tr>
<tr><td><pre>i2 : f = ((a+1)*x+a*y+a^2*z)^2

                2                          2                               
o2 = (- 2a - 1)x  + (- a + 1)x*y + (a - 2)y  + 2x*z + (- 2a + 1)y*z + (2a +
     ------------------------------------------------------------------------
        2
     2)z

o2 : R</pre>
</td></tr>
<tr><td><pre>i3 : coefficient(y^2,f)

o3 = a - 2

o3 : GF 25</pre>
</td></tr>
</table>
The returned value is an element of the coefficient ring, even in the case when that ring is another polynomial ring.<table class="examples"><tr><td><pre>i4 : S = R[r,s,t];</pre>
</td></tr>
<tr><td><pre>i5 : coefficient(r,a*x*(r+a*s))

o5 = a*x

o5 : R</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_coefficients.html" title="monomials and their coefficients">coefficients</a> -- monomials and their coefficients</span></li>
<li><span><a href="_monomials.html" title="matrix of monomials in a ring element or matrix">monomials</a> -- matrix of monomials in a ring element or matrix</span></li>
<li><span><a href="_coefficient__Ring.html" title="get the coefficient ring">coefficientRing</a> -- get the coefficient ring</span></li>
</ul>
</div>
</div>
</body>
</html>