Changeset 6e7a34c in git
- Timestamp:
- Dec 15, 2014, 2:47:22 PM (9 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- 80b6d366c7d9906d194bdb7023d476a11e90d957a52e28861a7384e8117b6cdc93a18273495e071d
- Parents:
- 350269c461fd0afbb2c4d79cc7d38d2793207b12
- Location:
- Singular/LIB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/primdec.lib
r350269 r6e7a34c 101 101 if(ordstr(basering)[1,2]!="dp") 102 102 { 103 execute("ring @Phelp=("+charstr(@P)+"),("+varstr(@P)+"),(C,dp);"); 103 def @Phelp=changeordTo(basering,"dp"); 104 setring @Phelp; 104 105 ideal inew=std(imap(@P,id)); 105 106 ideal @h=imap(@P,h); … … 1454 1455 ready=0; 1455 1456 } 1456 execute( "ring P=("+charstr(R)+"),("+varstr(R)+"),(C,dp);"); 1457 def P=changeordTo(R,"dp"); 1458 setring P; 1457 1459 ideal i=imap(R,i); 1458 1460 if(npars(basering)==0) … … 1875 1877 RETURN: string = to define Kvar(nnp+1),...,var(nvars)[..rest ] 1876 1878 NOTE: 1877 EXAMPLE: example independentSet; shows an example1879 EXAMPLE: example prepareQuotientring; shows an example 1878 1880 " 1879 1881 { … … 1915 1917 phi; 1916 1918 setring @Q; 1917 1918 1919 } 1919 1920 … … 2191 2192 { 2192 2193 int di = vdim(i); 2193 execute ("ring gnir=("+charstr(P)+"),("+varstr(P)+"),lp;"); 2194 def gnir=changeordTo(P,"lp"); 2195 setring gnir; 2194 2196 ideal J = std(imap(P,i)); 2195 2197 attrib(J, "isSB", 1); … … 2318 2320 def P=basering; 2319 2321 2320 execute("ring ir = ("+charstr(basering)+"),("+varstr(basering)+"),(C,lp);"); 2322 def ir=changeordTo(basering,"lp"); 2323 setring ir; 2321 2324 list l=fetch(P,li); 2322 2325 list @erg; … … 2439 2442 else 2440 2443 { 2441 execute("ring gnir = ("+charstr(basering)+"),("+varstr(basering)+"),dp;"); 2444 def gnir=changeordTo(basering,"dp"); 2445 setring gnir; 2442 2446 ideal i=imap(P,i); 2443 2447 ideal j=groebner(i); … … 2513 2517 { 2514 2518 ERROR( 2515 " // Not implemented for this ordering, please change toglobal ordering."2519 "Not implemented for this ordering, please change to a global ordering." 2516 2520 ); 2517 2521 } … … 2543 2547 else 2544 2548 { 2545 execute("ring gnir = ("+charstr(basering)+"),("+varstr(basering)+"),dp;"); 2549 def gnir=changeordTo(basering,"dp"); 2550 setring gnir; 2546 2551 ideal i=imap(P,i); 2547 2552 ideal j=groebner(i); … … 2884 2889 int lp=islp(); 2885 2890 2886 execute("ring gnir = ("+charstr(basering)+"),("+varstr(basering)+"),(C,lp);"); 2891 def gnir=changeordTo(basering,"lp"); 2892 setring gnir; 2887 2893 op=option(get); 2888 2894 option(redSB); … … 3135 3141 else 3136 3142 { 3137 execute( "ring @Phelp=("+charstr(gnir)+"),("+varstr(gnir)+"),(C,dp);"); 3143 def @Phelp=changeordTo(gnir,"dp"); 3144 setring @Phelp; 3138 3145 } 3139 3146 -
Singular/LIB/ring.lib
r350269 r6e7a34c 1112 1112 } 1113 1113 1114 proc changeordTo(def r,string o) 1115 { 1116 list rl=ringlist(r); 1117 rl[3]=list(list("C",0),list(o,1:nvars(r))); 1118 def rr=ring(rl); 1119 return(rr); 1120 } 1121 example 1122 { 1123 ring r=0,(x,y),lp; 1124 def rr=changeordToCdp(r,"dp"); 1125 rr; 1126 } 1127
Note: See TracChangeset
for help on using the changeset viewer.