CoCoA:HowTo:Randomize Coefficients

From ApCoCoAWiki
Revision as of 08:51, 29 October 2020 by Andraschko (talk | contribs) (Andraschko moved page HowTo:Randomize Coefficients to CoCoA:HowTo:Randomize Coefficients: not relevant for CoCoA-5 or ApCoCoA-2)


The coefficients of a "Randomized" polynomials are too big for my purposes

  Use R ::= Q[x,y,z];
2129104241yz - 2703411994x

What can I do?


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)]);
  MyRandomized(x-yz, 4);
2yz + 6x

by Bigatti 17:25, 29 Nov 2005 (CET)