Top
Back: randomLast
Forward: redcgs_lib
FastBack: poly_lib
FastForward: redcgs_lib
Up: random_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.2.6.12 randomBinomial

Procedure from library random.lib (see random_lib).

Usage:
randomBinomial(k,u[,o,b]); k,u,o,b integers

Return:
binomial ideal, k homogeneous generators of degree d, u<=d<=o, with randomly choosen monomials and coefficients in the interval [-b,b] (default: u=o, b=10).

Example:
 
LIB "random.lib";
ring  r = 0,(x,y,z),lp;
ideal i = randomBinomial(4,5,6);
i;
==> i[1]=-x4z-xz4
==> i[2]=8x2y3+8xy3z
==> i[3]=-4x2y2z2-4xy5
==> i[4]=5x3yz2+5xz5

Top Back: randomLast Forward: redcgs_lib FastBack: poly_lib FastForward: redcgs_lib Up: random_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.