<?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>leadTerm(ZZ,Matrix) -- get the matrix of lead polynomials of each column</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_lead__Term_lp__Z__Z_cm__Ring__Element_rp.html">next</a> | <a href="_lead__Term_lp__Z__Z_cm__Ideal_rp.html">previous</a> | <a href="_lead__Term_lp__Z__Z_cm__Ring__Element_rp.html">forward</a> | <a href="_lead__Term_lp__Z__Z_cm__Ideal_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>leadTerm(ZZ,Matrix) -- get the matrix of lead polynomials of each column</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>leadTerm(n,f)</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_lead__Term.html" title="get the greatest term">leadTerm</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>n</tt>, <span>an <a href="___Z__Z.html">integer</a></span></span></li> <li><span><tt>f</tt>, <span>a <a href="___Matrix.html">matrix</a></span>, in a polynomial ring</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Matrix.html">matrix</a></span>, the lead term matrix of <tt>f</tt> using the first <tt>n</tt> parts of the monomial order</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>Returns the matrix whose <tt>i</tt>-th column is the lead term of the <tt>i</tt>-th column of <tt>f</tt>, using the first <tt>n</tt> parts of the monomial order. <table class="examples"><tr><td><pre>i1 : R = QQ[x,y,z,a..d,MonomialOrder=>ProductOrder{3,4}];</pre> </td></tr> <tr><td><pre>i2 : f = matrix{{0,x^2*(a+b)}, {a*x+2*b*y, y^2*(c+d)}} o2 = | 0 x2a+x2b | | xa+2yb y2c+y2d | 2 2 o2 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i3 : leadTerm(1,f) o3 = | 0 x2a+x2b | | xa 0 | 2 2 o3 : Matrix R <--- R</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_select__In__Subring.html" title="select columns in a subring">selectInSubring</a> -- select columns in a subring</span></li> </ul> </div> </div> </body> </html>