<?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>isField -- whether something 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="_is__Finite.html">next</a> | <a href="_is__Direct__Sum.html">previous</a> | <a href="_is__Finite.html">forward</a> | <a href="_is__Direct__Sum.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>isField -- whether something 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>isField R</tt></div> </dd></dl> </div> </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><span>a <a href="___Boolean.html">Boolean value</a></span>, <a href="_true.html" title="">true</a> if <tt>R</tt> was explicitly constructed as a field (no computation is done) and <a href="_false.html" title="">false</a> otherwise</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>This function recognizes basic fields, <a href="___Galois__Field.html">Galois fields</a> and <a href="___Fraction__Field.html">fraction fields</a>.<table class="examples"><tr><td><pre>i1 : isField QQ o1 = true</pre> </td></tr> <tr><td><pre>i2 : isField CC_53 o2 = true</pre> </td></tr> <tr><td><pre>i3 : isField GF(2,3) o3 = true</pre> </td></tr> <tr><td><pre>i4 : isField(frac(QQ[x,y])) o4 = true</pre> </td></tr> </table> This function will not recognize other rings as fields.<table class="examples"><tr><td><pre>i5 : R = QQ[x]/(x^2+1) o5 = R o5 : QuotientRing</pre> </td></tr> <tr><td><pre>i6 : isUnit x o6 = true</pre> </td></tr> <tr><td><pre>i7 : isField R o7 = false</pre> </td></tr> <tr><td><pre>i8 : F = toField R o8 = F o8 : PolynomialRing</pre> </td></tr> <tr><td><pre>i9 : isField F o9 = true</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_to__Field_lp__Ring_rp.html" title="declare that a ring is a field">toField</a> -- declare that a ring is a field</span></li> <li><span><a href="___Fraction__Field.html" title="the class of all fraction fields">FractionField</a> -- the class of all fraction fields</span></li> <li><span><a href="___Galois__Field.html" title="the class of all Galois fields">GaloisField</a> -- the class of all Galois fields</span></li> <li><span><a href="___Quotient__Ring.html" title="the class of all quotient rings">QuotientRing</a> -- the class of all quotient rings</span></li> <li><span><a href="_is__Unit.html" title="whether a ring element is a unit">isUnit</a> -- whether a ring element is a unit</span></li> </ul> </div> <div class="waystouse"><h2>Ways to use <tt>isField</tt> :</h2> <ul><li>isField(EngineRing)</li> <li>isField(Ring)</li> </ul> </div> </div> </body> </html>