Top
Back: D.2.5.9 triagmatrix
Forward: D.2.5.11 randomBinomial
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.10 randomLast

Procedure from library random.lib (see random_lib).

Usage:

randomLast(b); b int

Return:

ideal = maxideal(1), but the last variable is exchanged by a random linear combination of all variables, with coefficients in the interval [-b,b].

Example:

 
LIB "random.lib";
ring  r = 0,(x,y,z),lp;
ideal i = randomLast(10);
i;
→ i[1]=x
→ i[2]=y
→ i[3]=-x+z

Top Back: D.2.5.9 triagmatrix Forward: D.2.5.11 randomBinomial 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.