CoCoA:HowTo:Randomize Coefficients
From ApCoCoAWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Question
The coefficients of a "Randomized" polynomials are too big for my purposes
Use R ::= Q[x,y,z]; Randomized(x-yz); 2129104241yz - 2703411994x -------------------------------
What can I do?
Answer
This function will produce a randomized polynomial with "small" random coefficients
Define MyRandomized(F, Range) Return Sum([ Rand(-Range,Range)*T | T In Support(F)]); EndDefine;
MyRandomized(x-yz, 4); 2yz + 6x -------------------------------
by Bigatti 17:25, 29 Nov 2005 (CET)