Changeset f11ebbb in git for Singular/LIB/random.lib
- Timestamp:
- Jul 20, 2006, 5:19:35 PM (18 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 9fcd0ce4c1e81e1a9cb45650ec0424536503ac34
- Parents:
- a7a00b260ae8565373693ac2d660760f277072c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/random.lib
ra7a00b rf11ebbb 1 1 //(GMG/BM, last modified 22.06.96) 2 2 /////////////////////////////////////////////////////////////////////////////// 3 version="$Id: random.lib,v 1.1 6 2001-01-16 13:48:40Singular Exp $";3 version="$Id: random.lib,v 1.17 2006-07-20 15:19:35 Singular Exp $"; 4 4 category="General purpose"; 5 5 info=" … … 27 27 28 28 proc genericid (id, list #) 29 "USAGE: genericid(id ,[,p,b]); id ideal/module, k,p,b integers29 "USAGE: genericid(id[,p,b]); id ideal/module, p,b integers 30 30 RETURN: system of generators of id which are generic, sparse, triagonal linear 31 31 combinations of given generators with coefficients in [1,b] and … … 55 55 56 56 proc randomid (id, list #) 57 "USAGE: randomid(id ,[k,b]); id ideal/module, b,k integers57 "USAGE: randomid(id[,k,b]); id ideal/module, b,k integers 58 58 RETURN: ideal/module having k generators which are random linear combinations 59 59 of generators of id with coefficients in the interval [-b,b] … … 119 119 RETURN: ideal having k generators, each of degree d, u<=d<=o, p percent of 120 120 terms in degree d are 0, the remaining have random coefficients 121 in the interval [1,b], (default: o=u =d, p=75, b=30000)121 in the interval [1,b], (default: o=u, p=75, b=30000) 122 122 EXAMPLE: example sparseid; shows an example 123 123 " … … 244 244 RETURN: poly having only terms in degree d, u<=d<=o, p percent of the terms 245 245 in degree d are 0, the remaining have random coefficients in [1,b), 246 (defaults: o=u =d, p=75, b=30000)246 (defaults: o=u, p=75, b=30000) 247 247 EXAMPLE: example sparsepoly; shows an example 248 248 " … … 351 351 RETURN: ideal = maxideal(1), but the last variable is exchanged by a random 352 352 linear combination of all variables, with coefficients in the 353 interval [-b,b]. 353 interval [-b,b], except for the last variable which always has 354 coefficient 1 354 355 EXAMPLE: example randomLast; shows an example 355 356 "
Note: See TracChangeset
for help on using the changeset viewer.