Changeset 3c4dcc in git for Singular/LIB/ring.lib
- Timestamp:
- May 6, 2005, 4:39:20 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 0d217d3f1cc4c0449bdb078c65fd1f43cd1a2b84
- Parents:
- e6fb5315eb32da00236163ce10f9bdafaaa0bd47
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/ring.lib
re6fb531 r3c4dcc 1 1 /////////////////////////////////////////////////////////////////////////////// 2 version="$Id: ring.lib,v 1.2 4 2005-04-30 20:34:23 levandovExp $";2 version="$Id: ring.lib,v 1.25 2005-05-06 14:39:08 hannes Exp $"; 3 3 category="General purpose"; 4 4 info=" … … 69 69 RETURN: ring R, obtained from the ring r [default: r=basering], by changing 70 70 ordstr(r) to newordstr. If, say, newordstr=(\"R\",\"wp(2,3),dp\") and 71 if the ring r exists and has >=3 variables, the ring R will be 71 if the ring r exists and has >=3 variables, the ring R will be 72 72 equipped with the monomial ordering wp(2,3),dp. 73 73 NOTE: This proc uses 'execute' or calls a procedure using 'execute'. … … 151 151 setring(r); 152 152 def R=changevar("A()"); R; ""; 153 def Q'=changevar("a,b,c,d",Q); setring Q'; Q'; 153 def Q'=changevar("a,b,c,d",Q); setring Q'; Q'; 154 154 kill R,Q,Q'; 155 155 } … … 158 158 proc defring (string s2, int n, string s3, string s4) 159 159 "USAGE: defring(ch,n,va,or); ch,va,or=strings, n=integer 160 RETURN: ring R with characteristic 'ch', ordering 'or' and n variables with 160 RETURN: ring R with characteristic 'ch', ordering 'or' and n variables with 161 161 names derived from va. 162 162 If va is a single letter, say va=\"a\", and if n<=26 then a and the … … 187 187 "USAGE: defrings(n,[p]); n,p integers 188 188 RETURN: ring R with characteristic p [default: p=32003], ordering ds and n 189 variables x,y,z,a,b,...if n<=26 (resp. x(1..n) if n>26) 189 variables x,y,z,a,b,...if n<=26 (resp. x(1..n) if n>26) 190 190 NOTE: This proc uses 'execute' or calls a procedure using 'execute'. 191 191 EXAMPLE: example defrings; shows an example … … 205 205 execute(s); 206 206 dbprint(printlevel-voice+2," 207 // 'defrings' created a ring. To see the ring, type (if the name R was 207 // 'defrings' created a ring. To see the ring, type (if the name R was 208 208 // assigned to the return value): 209 209 show R; 210 // To make the ring the active basering, type 210 // To make the ring the active basering, type 211 211 setring R; "); 212 212 return(S); … … 223 223 "USAGE: defringp(n,[p]); n,p=integers 224 224 RETURN: ring R with characteristic p [default: p=32003], ordering dp and n 225 variables x,y,z,a,b,...if n<=26 (resp. x(1..n) if n>26) 225 variables x,y,z,a,b,...if n<=26 (resp. x(1..n) if n>26) 226 226 NOTE: This proc uses 'execute' or calls a procedure using 'execute'. 227 227 EXAMPLE: example defringp; shows an example … … 241 241 execute(s); 242 242 dbprint(printlevel-voice+2," 243 // 'defringp' created a ring. To see the ring, type (if the name R was 243 // 'defringp' created a ring. To see the ring, type (if the name R was 244 244 // assigned to the return value): 245 245 show R; 246 // To make the ring the active basering, type 246 // To make the ring the active basering, type 247 247 setring R; "); 248 248 return(P); … … 257 257 258 258 proc extendring (int n, string va, string o, list #) 259 "USAGE: extendring(n,va,o[iv,i,r]); va,o=strings, n,i=integers, r=ring, 259 "USAGE: extendring(n,va,o[iv,i,r]); va,o=strings, n,i=integers, r=ring, 260 260 iv=intvec of positive integers or iv=0 261 RETURN: ring R, which extends the ring r by adding n new variables in front 261 RETURN: ring R, which extends the ring r by adding n new variables in front 262 262 of (resp. after, if i!=0) the old variables. 263 263 [default: (i,r)=(0,basering)]. … … 266 266 va=\"T\", and if n<=26 then T and the following n-1 letters from 267 267 T..Z..T (resp. T(1..n) if n>26) are taken as additional variables. 268 If va is a single letter followed by a bracket, say va=\"x(\", 268 If va is a single letter followed by a bracket, say va=\"x(\", 269 269 the new variables are x(1),...,x(n). 270 270 @* -- The ordering is the product ordering of the ordering of r and of an … … 290 290 NOTE: This proc is useful for adding deformation parameters. 291 291 This proc uses 'execute' or calls a procedure using 'execute'. 292 If you use it in your own proc, it may be advisable to let the local 292 If you use it in your own proc, it may be advisable to let the local 293 293 names of your proc start with a @ (see the file HelpForProc) 294 294 EXAMPLE: example extendring; shows an example … … 597 597 proc ringtensor (list #) 598 598 "USAGE: ringtensor(r1,r2,...); s=string, r1,r2,...=rings 599 RETURN: ring R whose variables are the variables from all rings r1,r2,... 600 and whose monomial ordering is the block (product) ordering of the 599 RETURN: ring R whose variables are the variables from all rings r1,r2,... 600 and whose monomial ordering is the block (product) ordering of the 601 601 respective monomial orderings of r1,r2,... . Hence, R 602 602 is the tensor product of the rings r1,r2,... with ordering matrix … … 651 651 } 652 652 dbprint(printlevel-voice+2," 653 // 'ringtensor' created a ring. To see the ring, type (if the name R was 653 // 'ringtensor' created a ring. To see the ring, type (if the name R was 654 654 // assigned to the return value): 655 655 show R; 656 // To make the ring the active basering, type 656 // To make the ring the active basering, type 657 657 setring R; "); 658 658 return(s); … … 664 664 ring t=0,x(1..5),(c,ls); 665 665 def R=ringtensor(r,s,t); 666 type R; 666 type R; 667 667 setring s; 668 668 ideal i = a2+b3+c5; … … 761 761 all input parameters of type string 762 762 TYPE: ideal 763 PURPOSE: computes the preimage of an ideal under a given map for non-global 763 PURPOSE: computes the preimage of an ideal under a given map for non-global 764 764 orderings. 765 The second argument has to be the name of a map from the basering to 766 the given ring (or the name of an ideal defining such a map), and 765 The second argument has to be the name of a map from the basering to 766 the given ring (or the name of an ideal defining such a map), and 767 767 the ideal has to be an ideal in the given ring. 768 768 SEE ALSO: preimage
Note: See TracChangeset
for help on using the changeset viewer.