<?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>determinants and minors</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Pfaffians.html">next</a> | <a href="_rank_spof_spa_spmatrix.html">previous</a> | <a href="___Pfaffians.html">forward</a> | <a href="_rank_spof_spa_spmatrix.html">backward</a> | <a href="_matrices.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="_matrices.html" title="">matrices</a> > <a href="_determinants_spand_spminors.html" title="">determinants and minors</a></div> <hr/> <div><h1>determinants and minors</h1> <div>The command <a href="_determinant.html" title="determinant of a matrix">determinant</a> can be used to compute the determinant of a square matrix.<table class="examples"><tr><td><pre>i1 : R = ZZ[a..d];</pre> </td></tr> <tr><td><pre>i2 : f = matrix{{a,b},{c,d}} o2 = | a b | | c d | 2 2 o2 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i3 : det f o3 = - b*c + a*d o3 : R</pre> </td></tr> </table> The command <a href="_minors_lp__Z__Z_cm__Matrix_rp.html" title="ideal generated by minors">minors</a> can be used to construct the ideal generated by the <tt>n</tt> by <tt>n</tt> minors of a matrix. Recall that the <tt>n</tt> by <tt>n</tt> minors of a matrix are the determinants of the <tt>n</tt> by <tt>n</tt> submatrices of a matrix.<table class="examples"><tr><td><pre>i4 : R = QQ[x,y,z];</pre> </td></tr> <tr><td><pre>i5 : f = matrix{{x,y,z},{y,z,x^2}} o5 = | x y z | | y z x2 | 2 3 o5 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i6 : I = minors(2,f) 2 3 2 2 o6 = ideal (- y + x*z, x - y*z, x y - z ) o6 : Ideal of R</pre> </td></tr> </table> </div> </div> </body> </html>