Top
Back: tropicalSubst
Forward: cleanTmp
FastBack: oldpolymake_lib
FastForward: Miscellaneous libraries
Up: tropical_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.2.34 randomPoly

Procedure from library tropical.lib (see tropical_lib).

Usage:
randomPoly(d,ug,og[,#]); d, ug, og int, # list

Assume:
the basering has a parameter t

Return:
poly, a polynomial of degree d where the coefficients are of the form t^j with j a random integer between ug and og

Note:
if an optional argument # is given, then the coefficients are instead either of the form t^j as above or they are zero, and this is chosen randomly

Example:
 
LIB "tropical.lib";
ring r=(0,t),(x,y),dp;
randomPoly(3,-2,5);
randomPoly(3,-2,5,1);


Top Back: tropicalSubst Forward: cleanTmp FastBack: oldpolymake_lib FastForward: Miscellaneous libraries Up: tropical_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.