Top
Back: D.2.5.10 randomLast
Forward: D.2.6 ring_lib
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.2.5 random_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.2.5.11 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 chosen 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: D.2.5.10 randomLast Forward: D.2.6 ring_lib FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.2.5 random_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.