<?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>randomModule(List,ZZ) -- module with random relations in prescribed degrees</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_random__Socle__Module_lp__List_cm__Z__Z_rp.html">next</a> | <a href="_pure__Weyman.html">previous</a> | <a href="_random__Socle__Module_lp__List_cm__Z__Z_rp.html">forward</a> | <a href="_pure__Weyman.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>randomModule(List,ZZ) -- module with random relations in prescribed degrees</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>randomModule(L,m)</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_random__Module_lp__List_cm__Z__Z_rp.html" title="module with random relations in prescribed degrees">randomModule</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>L</tt>, <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, a strictly increasing degree sequence of integers</span></li> <li><span><tt>m</tt>, <span>an <a href="../../Macaulay2Doc/html/___Z__Z.html">integer</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="../../Macaulay2Doc/html/___Module.html">module</a></span>, randomly generated having m b_0 generators in degree L_0 and m b_1 relations in degree L_1, where b = pureBetti L</span></li> </ul> </div> </li> <li><div class="single"><a href="../../Macaulay2Doc/html/_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><tt>CoefficientRing => </tt><span><span>default value ZZ/101</span>, The base field for the resulting module</span></span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><table class="examples"><tr><td><pre>i1 : L={0,4,9,10} o1 = {0, 4, 9, 10} o1 : List</pre> </td></tr> <tr><td><pre>i2 : B = pureBetti L o2 = {1, 3, 8, 6} o2 : List</pre> </td></tr> <tr><td><pre>i3 : betti res randomModule(L,1) 0 1 2 3 o3 = total: 1 3 3 1 0: 1 . . . 1: . . . . 2: . . . . 3: . 3 . . 4: . . . . 5: . . . . 6: . . 3 . 7: . . . . 8: . . . . 9: . . . 1 o3 : BettiTally</pre> </td></tr> <tr><td><pre>i4 : betti res randomModule(L,2) 0 1 2 3 o4 = total: 2 6 16 12 0: 2 . . . 1: . . . . 2: . . . . 3: . 6 . . 4: . . . . 5: . . . . 6: . . . . 7: . . 16 12 o4 : BettiTally</pre> </td></tr> <tr><td><pre>i5 : betti res randomModule(L,2, CoefficientRing=>ZZ/5) 0 1 2 3 o5 = total: 2 6 16 12 0: 2 . . . 1: . . . . 2: . . . . 3: . 6 . . 4: . . . . 5: . . . . 6: . . . . 7: . . 16 12 o5 : BettiTally</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_random__Socle__Module_lp__List_cm__Z__Z_rp.html" title="random finite length module with prescribed number of socle elements in single degree">randomSocleModule</a> -- random finite length module with prescribed number of socle elements in single degree</span></li> <li><span><a href="_pure__Betti_lp__List_rp.html" title="list of smallest integral Betti numbers corresponding to a degree sequence">pureBetti</a> -- list of smallest integral Betti numbers corresponding to a degree sequence</span></li> </ul> </div> </div> </body> </html>