Changeset 18da050 in git for Singular/LIB/primitiv.lib
- Timestamp:
- Jul 2, 1999, 11:06:02 AM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 8c7c71771e971ec336b73a5dde1b7e8b53050848
- Parents:
- 6de26a0e63b1ed1c30b10d4e5574fe8982f9f569
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.