Changeset 3754ca in git for Singular/LIB/random.lib


Ignore:
Timestamp:
Apr 15, 2009, 1:28:08 PM (15 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
a6606e6cba9689ecbcc4e27ac00fb8c1deabd128
Parents:
40c648539a84cb2dc36e46b6b6c84deeb21e393b
Message:
minor textual changes prior to 3-1-0


git-svn-id: file:///usr/local/Singular/svn/trunk@11714 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/random.lib

    r40c648 r3754ca  
    11//(GMG/BM, last modified 22.06.96)
    22///////////////////////////////////////////////////////////////////////////////
    3 version="$Id: random.lib,v 1.19 2009-04-14 12:00:14 Singular Exp $";
     3version="$Id: random.lib,v 1.20 2009-04-15 11:18:27 seelisch Exp $";
    44category="General purpose";
    55info="
     
    154154proc sparseHomogIdeal (int k, int u, list #)
    155155"USAGE:   sparseid(k,u[,o,p,b]);  k,u,o,p,b integers
    156 RETURN:  ideal having k homogeneous generators, each of random degree in the
    157          interval [u,o], p percent of terms in degree d are 0, the remaining
    158          have random coefficients in the interval [1,b], (default: o=u, p=75,
     156RETURN:  ideal having k homogeneous generators, each of random degree in the 
     157         interval [u,o], p percent of terms in degree d are 0, the remaining 
     158         have random coefficients in the interval [1,b], (default: o=u, p=75, 
    159159         b=30000)
    160160EXAMPLE: example sparseid; shows an example
     
    172172   {
    173173       id = maxideal(random(u, o)); // monomial basis of some degree
    174        m = sparsemat(size(id),1,p,b); // random coefficients
     174       m = sparsemat(size(id),1,p,b); // random coefficients       
    175175       i[ii] = (matrix(id)*m)[1,1];
    176176   }
     
    278278proc sparsepoly (int u, list #)
    279279"USAGE:   sparsepoly(u[,o,p,b]);  u,o,p,b integers
    280 RETURN:  poly having only terms in degree d, u<=d<=o, p percent of the terms
     280RETURN:  poly having only terms in degree d, u<=d<=o, p percentage of the terms
    281281         in degree d are 0, the remaining have random coefficients in [1,b),
    282282         (defaults: o=u, p=75, b=30000)
Note: See TracChangeset for help on using the changeset viewer.