Top
Back: D.2.5.6 sparsemat
Forward: D.2.5.8 sparsetriag
FastBack: Appendix D SINGULAR libraries
FastForward: E Release Notes
Up: D.2.5 random_lib
Top: 1 Preface
Contents: Table of Contents
Index: F Index
About: About This Document

D.2.5.7 sparsepoly

Procedure from library random.lib (see section random_lib).

Usage:

sparsepoly(u[,o,p,b]); u,o,p,b integers

Return:

poly having only terms in degree d, u<=d<=o, p percent of the terms in degree d are 0, the remaining have random coefficients in [1,b), (defaults: o=u=d, p=75, b=30000)

Example:

LIB "random.lib";
ring r=0,(x,y,z),dp;
sparsepoly(5);"";
→ 24263xy4+24170x4z+21962x3yz+26642xy3z+5664xy2z2+17904xz4
→ 
sparsepoly(3,5,90,9);
→ 8x3z2+2y3z2+3xyz3+2xy3+yz3+xy2

Top Back: D.2.5.6 sparsemat Forward: D.2.5.8 sparsetriag FastBack: Appendix D SINGULAR libraries FastForward: E Release Notes Up: D.2.5 random_lib Top: 1 Preface Contents: Table of Contents Index: F Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texinfo.