<?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>Singular Book 1.3.13 -- computation in quotient rings</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Singular_sp__Book_sp1.3.15.html">next</a> | <a href="___Singular_sp__Book_sp1.3.3.html">previous</a> | <a href="___Singular_sp__Book_sp1.3.15.html">forward</a> | <a href="___Singular_sp__Book_sp1.3.3.html">backward</a> | <a href="___M2__Singular__Book.html">up</a> | <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> <div><a href="index.html" title="">Macaulay2Doc</a> > <a href="_basic_spcommutative_spalgebra.html" title="">basic commutative algebra</a> > <a href="___M2__Singular__Book.html" title="Macaulay2 examples for the Singular book">M2SingularBook</a> > <a href="___Singular_sp__Book_sp1.3.13.html" title="computation in quotient rings">Singular Book 1.3.13</a></div> <hr/> <div><h1>Singular Book 1.3.13 -- computation in quotient rings</h1> <div>In Macaulay2, we define a quotient ring using the usual mathematical notation.<table class="examples"><tr><td><pre>i1 : R = ZZ/32003[x,y,z];</pre> </td></tr> <tr><td><pre>i2 : Q = R/(x^2+y^2-z^5, z-x-y^2) o2 = Q o2 : QuotientRing</pre> </td></tr> <tr><td><pre>i3 : f = z^2+y^2 2 o3 = z - x + z o3 : Q</pre> </td></tr> <tr><td><pre>i4 : g = z^2+2*x-2*z-3*z^5+3*x^2+6*y^2 2 o4 = z - x + z o4 : Q</pre> </td></tr> <tr><td><pre>i5 : f == g o5 = true</pre> </td></tr> </table> Testing for zerodivisors in Macaulay2:<table class="examples"><tr><td><pre>i6 : ann f o6 = ideal () o6 : Ideal of Q</pre> </td></tr> </table> This is the zero ideal, meaning that <i>f</i> is not a zero divisor in the ring <i>Q</i>.</div> </div> </body> </html>