Sophie

Sophie

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

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>RingElement / RingElement -- fraction</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Ring__Element_sp^_sp__Z__Z.html">next</a> | <a href="___Ring__Element_sp.._lt_sp__Ring__Element.html">previous</a> | <a href="___Ring__Element_sp^_sp__Z__Z.html">forward</a> | <a href="___Ring__Element_sp.._lt_sp__Ring__Element.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>RingElement / RingElement -- fraction</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>f/g</tt></div>
</dd></dl>
</div>
</li>
<li><span>Operator: <a href="__sl.html" title="a binary operator, usually used for division">/</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span></span></li>
<li><span><tt>g</tt>, <span>a <a href="___Ring__Element.html">ring element</a></span></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 fraction f/g</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>If either f or g is in a base ring of the other, then that one is promoted so that both are elements in the same ring R.<p/>
The fraction will be an element of the fraction field, frac R, of R.  If R is already a field, then this means that the fraction will be an element of R.<table class="examples"><tr><td><pre>i1 : 4/2

o1 = 2

o1 : QQ</pre>
</td></tr>
</table>
<table class="examples"><tr><td><pre>i2 : R = GF(9,Variable=>a);</pre>
</td></tr>
<tr><td><pre>i3 : (a/a^3) * a^2 == 1

o3 = true</pre>
</td></tr>
</table>
<table class="examples"><tr><td><pre>i4 : S = ZZ[a,b]

o4 = S

o4 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i5 : (a^6-b^6)/(a^9-b^9)

          3    3
         a  + b
o5 = --------------
      6    3 3    6
     a  + a b  + b

o5 : frac(S)</pre>
</td></tr>
</table>
If the ring contains zero divisors, the fraction field is not defined.  Macaulay2 will not inform you of this right away.  However, if computation finds a zero-divisor, an error message is generated.<table class="examples"><tr><td><pre>i6 : A = ZZ/101[a,b]/(a*b)

o6 = A

o6 : QuotientRing</pre>
</td></tr>
<tr><td><pre>i7 : (a+b)/(a-b)

     -b
o7 = --
      b

o7 : frac(A)</pre>
</td></tr>
</table>
At this point, if one types <tt>a/b</tt>, then Macaulay2 would give an error saying that a zero divisor was found in the denominator.</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="__sl_sl.html" title="a binary operator, usually used for quotient">//</a> -- a binary operator, usually used for quotient</span></li>
</ul>
</div>
</div>
</body>
</html>