Changeset 18da050 in git
- Timestamp:
- Jul 2, 1999, 11:06:02 AM (24 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 8c7c71771e971ec336b73a5dde1b7e8b53050848
- Parents:
- 6de26a0e63b1ed1c30b10d4e5574fe8982f9f569
- Location:
- Singular/LIB
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/primdec.lib
r6de26a0 r18da050 1 // $Id: primdec.lib,v 1.3 5 1999-06-09 12:04:24 SingularExp $1 // $Id: primdec.lib,v 1.36 1999-07-02 09:06:00 obachman Exp $ 2 2 //////////////////////////////////////////////////////////////////////////////// 3 3 // primdec.lib // … … 11 11 //////////////////////////////////////////////////////////////////////////////// 12 12 13 version="$Id: primdec.lib,v 1.3 5 1999-06-09 12:04:24 SingularExp $";13 version="$Id: primdec.lib,v 1.36 1999-07-02 09:06:00 obachman Exp $"; 14 14 info=" 15 15 LIBRARY: primdec.lib: PROCEDURE FOR PRIMARY DECOMPOSITION … … 420 420 return(0); 421 421 } 422 423 424 425 426 proc randomLast(int b)427 "USAGE: randomLast428 RETURN: ideal = maxideal(1) but the last variable exchanged by429 a sum of it with a linear random combination of the other430 variables431 NOTE:432 EXAMPLE: example randomLast; shows an example433 "434 {435 436 ideal i=maxideal(1);437 int k=size(i);438 i[k]=0;439 i=randomid(i,size(i),b);440 ideal ires=maxideal(1);441 ires[k]=i[1]+var(k);442 return(ires);443 }444 example445 { "EXAMPLE:"; echo = 2;446 ring r = 0,(x,y,z),lp;447 ideal i = randomLast(10);448 i;449 }450 451 452 422 //////////////////////////////////////////////////////////////////////////////// 453 423 -
Singular/LIB/primitiv.lib
r6de26a0 r18da050 1 // $Id: primitiv.lib,v 1. 8 1999-04-14 12:11:53 SingularExp $1 // $Id: primitiv.lib,v 1.9 1999-07-02 09:06:01 obachman Exp $ 2 2 // author: Martin Lamm, email: lamm@mathematik.uni-kl.de 3 3 // last change: 19.03.99 … … 5 5 // This library is for Singular 1.2 or newer 6 6 7 version="$Id: primitiv.lib,v 1. 8 1999-04-14 12:11:53 SingularExp $";7 version="$Id: primitiv.lib,v 1.9 1999-07-02 09:06:01 obachman Exp $"; 8 8 info=" 9 9 LIBRARY: primitiv.lib PROCEDURES FOR FINDING A PRIMITIVE ELEMENT … … 12 12 primitive_extra(i); find primitive element for two generators 13 13 splitring(f,R[,L]); define ring extension with name R and switch to it 14 randomLast(b); random transformation of the last variable15 14 "; 16 15 … … 19 18 /////////////////////////////////////////////////////////////////////////////// 20 19 21 proc randomLast(int b)22 "USAGE: randomLast(b); b int23 RETURN: ideal = maxideal(1), but the last variable is exchanged by24 a sum of it with a linear random combination of the other25 variables. The coefficients are in the interval [-b,b].26 EXAMPLE: example randomLast; shows an example27 "28 {29 ideal i=maxideal(1);30 int k=size(i);31 i[k]=0;32 i=randomid(i,size(i),b);33 ideal ires=maxideal(1);34 ires[k]=i[1]+var(k);35 return(ires);36 }37 example38 { "EXAMPLE:"; echo = 2;39 ring r = 0,(x,y,z),lp;40 ideal i = randomLast(10);41 i;42 }43 20 /////////////////////////////////////////////////////////////////////////////// 44 21 -
Singular/LIB/random.lib
r6de26a0 r18da050 1 // $Id: random.lib,v 1. 5 1998-05-05 11:55:36 kruegerExp $1 // $Id: random.lib,v 1.6 1999-07-02 09:06:02 obachman Exp $ 2 2 //system("random",787422842); 3 3 //(GMG/BM, last modified 22.06.96) 4 4 /////////////////////////////////////////////////////////////////////////////// 5 5 6 version="$Id: random.lib,v 1. 5 1998-05-05 11:55:36 kruegerExp $";6 version="$Id: random.lib,v 1.6 1999-07-02 09:06:02 obachman Exp $"; 7 7 info=" 8 8 LIBRARY: random.lib PROCEDURES OF RANDOM MATRIX AND POLY OPERATIONS … … 15 15 sparsepoly(u[,o,p,b]); random sparse polynomial with terms of degree in [u,o] 16 16 sparsetriag(n,m[..]); nxm sparse lower-triag intmat with random coefficients 17 randomLast(b); random transformation of the last variable 17 18 (parameters in square brackets [] are optional) 18 19 "; … … 247 248 } 248 249 /////////////////////////////////////////////////////////////////////////////// 250 251 proc randomLast(int b) 252 "USAGE: randomLast(b); b int 253 RETURN: ideal = maxideal(1), but the last variable is exchanged by 254 a sum of it with a linear random combination of the other 255 variables. The coefficients are in the interval [-b,b]. 256 EXAMPLE: example randomLast; shows an example 257 " 258 { 259 ideal i=maxideal(1); 260 int k=size(i); 261 i[k]=0; 262 i=randomid(i,size(i),b); 263 ideal ires=maxideal(1); 264 ires[k]=i[1]+var(k); 265 return(ires); 266 } 267 example 268 { "EXAMPLE:"; echo = 2; 269 ring r = 0,(x,y,z),lp; 270 ideal i = randomLast(10); 271 i; 272 } 273 ///////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.