Sophie

Sophie

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

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>divideByVariable -- divide all columns by a (power of a) variable</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Divide__Conquer.html">next</a> | <a href="___Divide.html">previous</a> | <a href="___Divide__Conquer.html">forward</a> | <a href="___Divide.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>divideByVariable -- divide all columns by a (power of a) variable</h1>
<div class="single"><h2>Description</h2>
<div><tt>divideByVariable(m,v)</tt> -- divide each column of the matrix 'm' by as high a power of the variable 'v' as possible.<br/><tt>divideByVariable(m,v,d)</tt> -- divide each column of the matrix 'm' by as high a power of the variable 'v' as possible, but divide by no more than v^d.<p/>
<table class="examples"><tr><td><pre>i1 : R = ZZ/101[a..d]

o1 = R

o1 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i2 : m = matrix{{a*b, a^2*c}, {a*b^2, a^4*d}}

o2 = | ab  a2c |
     | ab2 a4d |

             2       2
o2 : Matrix R  &lt;--- R</pre>
</td></tr>
<tr><td><pre>i3 : divideByVariable(m,a)

o3 = (| b  c   |, 2)
      | b2 a2d |

o3 : Sequence</pre>
</td></tr>
<tr><td><pre>i4 : divideByVariable(m,a,1)

o4 = (| b  ac  |, 1)
      | b2 a3d |

o4 : Sequence</pre>
</td></tr>
</table>
<p/>
We may eliminate this routine.</div>
</div>
<div class="single"><h2>Caveat</h2>
<div>You can only divide by a variable, not a monomial, and you have little control on what power will be divided.  This routine is mostly used by the saturation commands as a fast internal way of dividing.</div>
</div>
<div class="waystouse"><h2>Ways to use <tt>divideByVariable</tt> :</h2>
<ul><li>divideByVariable(Matrix,RingElement)</li>
<li>divideByVariable(Matrix,RingElement,ZZ)</li>
</ul>
</div>
</div>
</body>
</html>