<?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>isIdeal -- whether something is an ideal</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_is__Infinite.html">next</a> | <a href="_is__Homogeneous.html">previous</a> | <a href="_is__Infinite.html">forward</a> | <a href="_is__Homogeneous.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>isIdeal -- whether something is an ideal</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>isIdeal I</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>I</tt>, <span>a <a href="___Thing.html">thing</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>I</tt> is either an <a href="___Ideal.html">ideal</a>, a <a href="___Monomial__Ideal.html">monomial ideal</a> or a <a href="___Module.html">module</a> which is a submodule of a free module of rank 1 with generators in degree 0 and <a href="_false.html" title="">false</a> otherwise</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><table class="examples"><tr><td><pre>i1 : S = QQ[x,y,z];</pre> </td></tr> <tr><td><pre>i2 : I = ideal(x^2, y^2) 2 2 o2 = ideal (x , y ) o2 : Ideal of S</pre> </td></tr> <tr><td><pre>i3 : isIdeal I o3 = true</pre> </td></tr> <tr><td><pre>i4 : J = monomialIdeal I 2 2 o4 = monomialIdeal (x , y ) o4 : MonomialIdeal of S</pre> </td></tr> <tr><td><pre>i5 : isIdeal J o5 = true</pre> </td></tr> <tr><td><pre>i6 : R = QQ[a..d]/(a*b*c*d);</pre> </td></tr> <tr><td><pre>i7 : I = ideal(a^2,b^2) * R^1 o7 = image | a2 b2 | 1 o7 : R-module, submodule of R</pre> </td></tr> <tr><td><pre>i8 : isIdeal I o8 = true</pre> </td></tr> <tr><td><pre>i9 : J = a^2 * R^2 + a*b * R^2 o9 = image | a2 0 ab 0 | | 0 a2 0 ab | 2 o9 : R-module, submodule of R</pre> </td></tr> <tr><td><pre>i10 : isIdeal J o10 = false</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_ideal_lp__Module_rp.html" title="converts a module to an ideal">ideal(Module)</a> -- converts a module to an ideal</span></li> </ul> </div> <div class="waystouse"><h2>Ways to use <tt>isIdeal</tt> :</h2> <ul><li>isIdeal(Ideal)</li> <li>isIdeal(Module)</li> <li>isIdeal(MonomialIdeal)</li> <li>isIdeal(Thing)</li> </ul> </div> </div> </body> </html>