Changeset b45eec in git for Singular/LIB/ring.lib
- Timestamp:
- Apr 19, 2020, 9:57:14 PM (4 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- ffcf715a570941627bf020648e93955f1596f2ef
- Parents:
- d49a473d44aa25c5ecc3126360ab3179ddb8af7e636fa5455e699fa8c0a820dd60e00a059f96f8ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/ring.lib
rd49a47 rb45eec 250 250 if (n >26) 251 251 { 252 string s="ring S ="+string(p)+",x(1.."+string(n)+"),ds;"; 252 list l1; 253 for (int zz = 1; zz <= n; zz++) 254 { 255 l1[zz] = "x("+string(zz)+")"; 256 } 257 ring S = create_ring(p, l1, "ds"); 253 258 } 254 259 else 255 260 { 256 string s="ring S ="+string(p)+",("+A_Z("x",n)+"),ds;"; 257 } 258 execute(s); 261 ring S = create_ring(p, "("+A_Z("x",n)+")", "ds"); 262 } 259 263 dbprint(printlevel-voice+2," 260 264 // 'defrings' created a ring. To see the ring, type (if the name R was … … 286 290 if (n >26) 287 291 { 288 string s="ring P="+string(p)+",x(1.."+string(n)+"),dp;"; 292 list l2; 293 for (int zz = 1; zz <= n; zz++) 294 { 295 l2[zz] = "x("+string(zz)+")"; 296 } 297 ring P = create_ring(p, l2, "dp"); 289 298 } 290 299 else 291 300 { 292 string s="ring P="+string(p)+",("+A_Z("x",n)+"),dp;"; 293 } 294 execute(s); 301 ring P = create_ring(p, "("+A_Z("x",n)+")", "dp"); 302 } 295 303 dbprint(printlevel-voice+2," 296 304 // 'defringp' created a ring. To see the ring, type (if the name R was … … 761 769 { 762 770 ideal I=ideal(S); 763 newRing="ring S0=("+charstr(S)+"),("+varstr(S)+"),dp;";764 771 minpoly_string=string(minpoly); 765 execute(newRing); 772 list l8 = ringlist(S)[2]; 773 ring S0 = create_ring(ringlist(S)[1], l8, "dp", "no_minpoly"); 766 774 execute("minpoly="+minpoly_string+";"); 767 775 ideal I=imap(S,I); 768 776 list pr=primdecGTZ(I); 769 newRing="ring SL=("+charstr(S)+"),("+varstr(S)+"),("+ordstr(S)+");"; 770 execute(newRing); 777 ring SL = create_ring(ringlist(S)[1], l8, "("+ordstr(S)+")", "no_minpoly"); 771 778 execute("minpoly="+minpoly_string+";"); 772 779 list pr=imap(S0,pr); … … 799 806 { 800 807 ideal J=ideal(@R); 801 newRing="ring R0=("+charstr(@R)+"),("+varstr(@R)+"),dp;";808 list l9 = ringlist(@R)[2]; 802 809 minpoly_string=string(minpoly); 803 execute(newRing);810 ring R0 = create_ring(ringlist(@R)[1], l9, "dp", "no_minpoly"); 804 811 execute("minpoly="+minpoly_string+";"); 805 812 ideal J=imap(@R,J); 806 813 list pr=primdecGTZ(J); 807 newRing="ring RL=("+charstr(@R)+"),("+varstr(@R)+"),("+ordstr(@R)+");";808 execute(newRing);814 setring(@R); 815 ring RL = create_ring(ringlist(@R)[1], l9, "("+ordstr(@R)+")", "no_minpoly"); 809 816 execute("minpoly="+minpoly_string+";"); 810 817 list pr=imap(R0,pr); … … 1165 1172 } 1166 1173 example 1167 { "EXAMPLE:" ,echo=2;1174 { "EXAMPLE:"; echo=2; 1168 1175 ring r=0,(x,y,z),dp; 1169 1176 hasCommutativeVars(r);
Note: See TracChangeset
for help on using the changeset viewer.