Sophie

Sophie

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

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>toField(Ring) -- declare that a ring is a field</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_to__List_lp__Basic__List_rp.html">next</a> | <a href="_to__External__String.html">previous</a> | <a href="_to__List_lp__Basic__List_rp.html">forward</a> | <a href="_to__External__String.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>toField(Ring) -- declare that a ring is a field</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>L = toField R</tt></div>
</dd></dl>
</div>
</li>
<li><span>Function: <a href="_to__Field_lp__Ring_rp.html" title="declare that a ring is a field">toField</a></span></li>
<li><div class="single">Inputs:<ul><li><span><tt>R</tt>, <span>a <a href="___Ring.html">ring</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><tt>L</tt>, A new ring, isomorphic to <tt>R</tt>, declared to be a field.  Polynomial rings over it will support Gröbner basis operations.</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><table class="examples"><tr><td><pre>i1 : A = QQ[i]/(i^2+1);</pre>
</td></tr>
<tr><td><pre>i2 : L = toField A

o2 = L

o2 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i3 : B = L[x,y,z]

o3 = B

o3 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i4 : I = ideal(i*x^2-y-i, i*y^2-z-i)

               2             2
o4 = ideal (i*x  - y - i, i*y  - z - i)

o4 : Ideal of B</pre>
</td></tr>
<tr><td><pre>i5 : gens gb I

o5 = | y2+iz-1 x2+iy-1 |

             1       2
o5 : Matrix B  &lt;--- B</pre>
</td></tr>
</table>
<p>If the engine eventually discovers that some nonzero element of <tt>L</tt> is not a unit, an error will be signalled.  The user may then use <a href="_get__Non__Unit.html" title="retrieve a previously discovered non-unit">getNonUnit</a> to obtain a non-invertible element of <tt>L</tt>.  If a ring probably is a field, it can be used as a field until a contradiction is found, and this may be a good way of discovering whether a ring is a field.</p>
<table class="examples"><tr><td><pre>i6 : A = ZZ[a]/(a^2+3);</pre>
</td></tr>
<tr><td><pre>i7 : L = toField A

o7 = L

o7 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i8 : L[x,y,z]

o8 = L[x, y, z]

o8 : PolynomialRing</pre>
</td></tr>
<tr><td><pre>i9 : try gb ideal (a*x^2-y^2-z^2, y^3, z^3) else getNonUnit L

o9 = a

o9 : L</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="_get__Non__Unit.html" title="retrieve a previously discovered non-unit">getNonUnit</a> -- retrieve a previously discovered non-unit</span></li>
<li><span><a href="_try.html" title="catch an error">try</a> -- catch an error</span></li>
</ul>
</div>
</div>
</body>
</html>