Changeset 67b671 in git
- Timestamp:
- Jun 29, 2019, 4:20:05 PM (5 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- f2aefad298e7d312159153aa4bb4e8d8f2fe08b3
- Parents:
- d90fef85ca2c62d55b0f856b13bb352f199e2883
- git-author:
- Sachin <sachinkm308@gmail.com>2019-06-29 16:20:05+02:00
- git-committer:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2019-07-01 14:09:41+02:00
- Location:
- Singular/LIB
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/ainvar.lib
rd90fef r67b671 102 102 103 103 //changes the basering bsr to bsr[@t] 104 execute("ring s="+charstr(basering)+",("+varstr(basering)+",@t),dp;");104 ring s = create_ring(ringlist(basering)[1],"("+varstr(basering)+",@t)","dp","no_minpoly"); 105 105 poly inv,delta,tee,j; 106 106 ideal id=imap(bsr,id); … … 214 214 215 215 //------------- changes the basering bsr to bsr[@(0),...,@(z)] ---------- 216 execute("ring s="+charstr(basering)+",("+varstr(basering)+",@(0..z)),dp;"); 217 216 ring s = create_ring(ringlist(basering)[1],"("+varstr(basering)+",@(0..z))","dp","no_minpoly"); 218 217 //constructs the leading ideal of dom=(p-@(0),dom[1]-@(1),...,dom[z]-@(z)) 219 218 ideal dom=imap(bsr,dom); -
Singular/LIB/alexpoly.lib
rd90fef r67b671 657 657 int e=ncols(gr); 658 658 // Define the Ring for the Alexander Polynomial and the Zeta Function of the Monodromy. 659 execute("ring ALEXring=("+charstr(basering)+"),(t,t(1..r)),dp;");659 ring ALEXring = create_ring(ringlist(basering)[1],"(t,t(1..r))","dp","no_minpoly"); 660 660 poly hilfspoly=1; 661 661 poly alexnumerator=1; // numerator of the Alexander polynomial -
Singular/LIB/ehv.lib
rd90fef r67b671 742 742 poly g1 = L[1][1]; 743 743 //..and insert f in g1... 744 execute("ring newR = (" + charstr(R) + "),(y(1)),(" + ordstr(R) + ");");745 744 ring newR = create_ring(ringlist(R)[1], "(y(1))", "(" + ordstr(R) + ")", "no_minpoly"); 745 poly g2 = imap(R,g1); 746 746 setring base; 747 747 h = fetch(newR,g2); … … 1039 1039 ideal homoJ = fetch(base,K); 1040 1040 homoJ = groebner(homoJ); 1041 execute("ring newR = (" + charstr(base) + "),(x(1..n),t),dp;");1042 1041 ring newR = create_ring(ringlist(base)[1], "(x(1..n),t)", "dp", "no_minpoly"); 1042 ideal homoK = fetch(homoR,homoJ); 1043 1043 homoK = homog(homoK,t); 1044 1044 attrib(homoK,"isEquidimensional",1); -
Singular/LIB/general.lib
rd90fef r67b671 709 709 if ( typeof(#[1])=="string" ) 710 710 { 711 execute("ring r1 =("+charstr(P)+"),("+varstr(P)+"),("+#[1]+");");711 ring r1 = create_ring(ringlist(P)[1],"("+varstr(P)+")","("+#[1]+")","no_minpoly"); 712 712 def i = imap(P,id); 713 713 v = sortvec(i); -
Singular/LIB/gitfan.lib
rd90fef r67b671 266 266 newVars = newVars+string(var(k)); 267 267 newWeightVector[n]=weightVector[k]; 268 execute("ring ringForSaturation = ("+charstr(origin)+"),("+newVars+"),(wp(newWeightVector));"); 269 268 ring ringForSaturation = create_ring(ringlist(origin)[1],"("+newVars+")","(wp(newWeightVector))","no_minpoly"); 270 269 ideal I = satstd(imap(origin,I)); 271 270 I = simplify(I,2+4+32); -
Singular/LIB/grwalk.lib
rd90fef r67b671 236 236 def xR = basering; 237 237 238 execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";"); 238 ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly"); 239 239 240 def old_ring = basering; 240 241 … … 292 293 def xR = basering; 293 294 294 execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");295 ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly"); 295 296 def old_ring = basering; 296 297 //print("//** help ring = " + string(basering)); … … 328 329 option(redSB); 329 330 def xR = basering; 330 331 execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";"); 331 ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly"); 332 332 def old_ring = basering; 333 333 //print("//** help ring = " + string(basering)); … … 377 377 option(redSB); def xR = basering; 378 378 379 execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");379 ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly"); 380 380 def old_ring = basering; 381 381 … … 435 435 def xR = basering; 436 436 437 execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");437 ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly"); 438 438 def old_ring = basering; 439 439 … … 483 483 def xR = basering; 484 484 485 execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");485 ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly"); 486 486 def old_ring = basering; 487 487 -
Singular/LIB/hnoether.lib
rd90fef r67b671 281 281 //if ((char(basering)!=0) and (charstr(basering)!=string(char(basering)))) 282 282 int gcd_ok= ! hasGFCoefficient(basering); 283 execute("ring rsqrf = ("+charstr(altring)+"),(x,y),dp;");283 ring rsqrf = create_ring(ringlist(altring)[1],"(x,y)","dp","no_minpoly"); 284 284 if ((gcd_ok!=0) && (mipl!="0")) { execute("minpoly="+mipl+";"); } 285 285 poly f=fetch(altring,f); … … 365 365 ERROR(" Sorry -- not implemented for this ring (gcd doesn't work)"); 366 366 } 367 execute("ring rsqrf = ("+charstr(altring)+"),(x,y),dp;");367 ring rsqrf = create_ring(ringlist(altring)[1],"(x,y)","dp","no_minpoly"); 368 368 if (mipl!="0") { execute("minpoly="+mipl+";"); } 369 369 poly f=fetch(altring,f); … … 552 552 if (ringwechsel) { 553 553 string mipl=string(minpoly); 554 execute("ring guenstig = ("+charstr(altring)+"),(x,y),ls;");554 ring guenstig = create_ring(ringlist(altring)[1],"(x,y)","ls","no_minpoly"); 555 555 if ((char(basering)==0) && (mipl!="0")) { 556 556 execute("minpoly="+mipl+";"); … … 2168 2168 { 2169 2169 def @Rold=basering; 2170 execute("ring @RR=("+charstr(basering)+"),("+varstr(basering)+"),ls;");2170 ring @RR = create_ring(ringlist(basering)[1],"("+varstr(basering)+")","ls","no_minpoly"); 2171 2171 poly f=imap(@Rold,f); 2172 2172 } … … 2457 2457 { 2458 2458 if (npars(basering)>1) { // ring (p,a,..),... 2459 execute("ring extdguenstig=("+charstr(basering)+"),(x,y),ls;");2460 2459 ring extdguenstig = create_ring(ringlist(basering)[1],"(x,y)","ls","no_minpoly"); 2460 } 2461 2461 else { // ring (p,a),... 2462 2462 string mipl=string(minpoly); … … 2466 2466 } 2467 2467 else { 2468 execute("ring extdguenstig=("+charstr(basering)+"),(x,y),ls;");2468 ring extdguenstig = create_ring(ringlist(basering)[1],"(x,y)","ls","no_minpoly"); 2469 2469 } 2470 2470 } … … 2922 2922 "// ** extension occurs during the calculation, we cannot proceed with"; 2923 2923 "// ** the corresponding branches."; 2924 execute("ring HNEring=("+charstr(basering)+"),(x,y),ls;");2924 ring HNEring = create_ring(ringlist(basering)[1],"(x,y)","ls","no_minpoly"); 2925 2925 } 2926 2926 else { … … 4053 4053 { // Ringwechsel hatte stattgefunden 4054 4054 string mipl_alt = string(minpoly); 4055 execute("ring tempRing = ("+charstr(basering)+"),("+varstr(basering)+ 4056 "),("+ordstr(basering)+");"); 4055 ring tempRing = create_ring(ringlist(basering)[1],"("+varstr(basering)+")","("+ordstr(basering)+")","no_minpoly"); 4057 4056 execute("minpoly="+ mipl_alt +";"); 4058 4057 list HNEs=imap(EXTHNEring(EXTHNEnumber),HNEs); -
Singular/LIB/linalg.lib
rd90fef r67b671 370 370 def BR=basering; 371 371 //setze R[t] 372 execute("ring rt=("+charstr(basering)+"),(@t,"+varstr(basering)+"),lp;");372 ring rt = create_ring(ringlist(basering)[1], "(@t,"+varstr(basering)+")", "lp", "no_minpoly"); 373 373 execute("minpoly="+mp+";"); 374 374 matrix A=imap(BR,A); -
Singular/LIB/matrix.lib
rd90fef r67b671 1068 1068 1069 1069 //------------------------- create ring container for symmetric power basis- 1070 execute("ring @@@SYM_POWER_RING_NAME=(0),("+S+"(1.."+string(n)+")),dp;"); 1071 1070 ring @@@SYM_POWER_RING_NAME = create_ring(0,"("+S+"(1.."+string(n)+"))","dp","no_minpoly"); 1072 1071 //------------------------- choose symmetric basis ------------------------- 1073 1072 ideal symBasis = maxideal(k); … … 1116 1115 1117 1116 //------------------------- create ring container for symmetric power basis- 1118 execute("ring @@@EXT_POWER_RING_NAME=(0),("+S+"(1.."+string(n)+")),dp;");1117 ring @@@EXT_POWER_RING_NAME = create_ring(0,"("+S+"(1.."+string(n)+"))","dp","no_minpoly"); 1119 1118 1120 1119 //------------------------- choose exterior basis ------------------------- -
Singular/LIB/modwalk.lib
rd90fef r67b671 481 481 ideal xI = args[1]; 482 482 ring xR = basering; 483 execute("ring yR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");483 ring yR = create_ring(ringlist(xR)[1], "("+varstr(xR)+")", ord_str, "no_minpoly"); 484 484 ideal yI = fetch(xR,xI); 485 485 ideal yresult = fetch(xR,result); -
Singular/LIB/mprimdec.lib
rd90fef r67b671 283 283 284 284 @U[size(@U)]=")"; // we compute the extractor (w.r.t. @U) 285 execute("ring RAU="+charstr(basering)+",("+@A+@U+",(C,dp("+string(szA)+"),dp);");285 ring RAU = create_ring(ringlist(basering)[1],"("+@A+@U,"(C,dp("+string(szA)+"),dp)","no_minpoly"); 286 286 module @N=std(imap(BAS,@N)); 287 287 // this is also a standard basis in (R[U])[A] … … 670 670 } 671 671 @U[size(@U)]=")"; // we compute the extractor (w.r.t. @U) 672 execute("ring RAU="+charstr(basering)+",("+@A+@U+",(C,dp("+string(szA)+"),dp);");672 ring RAU = create_ring(ringlist(basering)[1],"("+@A+@U,"(C,dp("+string(szA)+"),dp)","no_minpoly"); 673 673 module @N=std(imap(BAS,@N)); // this is also a standard basis in (R[U])[A] 674 674 @A[size(@A)]=")"; … … 773 773 } 774 774 } 775 execute("ring PRing="+string(char(basering))+",("+strg+varstr(basering)+"),dp");775 ring PRing = create_ring(ringlist(basering)[1],"("+strg+varstr(basering)+")","dp","no_minpoly"); 776 776 ideal @a=ideal(imap(LBAS,@i),imap(LBAS,@j)); 777 777 poly @p=lcm(@a); … … 1494 1494 newva[size(newva)]=")"; 1495 1495 newma[size(newma)]=";"; 1496 execute("ring @deirf=("+charstr(BAS)+"),("+newva+",(C,lp);");1496 ring @deirf = create_ring(ringlist(BAS)[1],"("+newva,"(C,lp)","no_minpoly"); 1497 1497 execute("map @kappa=BAS,"+newma); 1498 1498 ideal @j = @kappa(ann); … … 1551 1551 for (@k2=1;@k2<=szIndep;@k2++) 1552 1552 { 1553 execute("ring RAU=("+charstr(basering)+"),("+indep[@k1][@k2][1]+","+indep[@k1][@k2][2]+"),"+indep[@k1][@k2][3]+";");1553 ring RAU = create_ring(ringlist(basering)[1],"("+indep[@k1][@k2][1]+","+indep[@k1][@k2][2]+")","indep[@k1][@k2][3]","no_minpoly"); 1554 1554 module @N=std(imap(BAS,@N)); // the standard basis in (R[U])[A] 1555 1555 execute("ring Rloc=("+charstr(basering)+","+indep[@k1][@k2][2]+"),("+indep[@k1][@k2][1]+"),(C,dp);"); … … 2153 2153 if(ordstr(basering)[1,2]!="dp") 2154 2154 { 2155 execute("ring @Phelp=("+charstr(@P)+"),("+varstr(@P)+"),(C,dp);");2155 ring @Phelp = create_ring(ringlist(@P)[1],"("+varstr(@P)+")","(C,dp)","no_minpoly"); 2156 2156 module inew=std(imap(@P,id)); 2157 2157 ideal @h=imap(@P,h1); -
Singular/LIB/normal.lib
rd90fef r67b671 2417 2417 poly p=I[1]; 2418 2418 2419 execute("ring S=("+charstr(R)+"),(x,y,t),dp;");2419 ring S = create_ring(ringlist(R)[1],"(x,y,t)","dp","no_minpoly"); 2420 2420 ideal L=maxideal(1); 2421 execute("ring C=("+charstr(R)+"),(x,y),ds;");2421 ring C = create_ring(ringlist(R)[1], "(x,y)", "ds", "no_minpoly"); 2422 2422 ideal I; 2423 execute("ring A=("+charstr(R)+"),(x,t),dp;");2423 ring A = create_ring(ringlist(R)[1], "(x,t)", "dp", "no_minpoly"); 2424 2424 map phi=S,1,x,t; 2425 2425 map psi=S,x,1,t; 2426 2426 poly g,h; 2427 2427 ideal I,I1; 2428 execute("ring B=("+charstr(R)+"),(x,t),ds;"); 2429 2428 ring B = create_ring(ringlist(R)[1], "(x,t)", "ds", "no_minpoly"); 2430 2429 setring S; 2431 2430 if(o) … … 2505 2504 "singularities at (x,y,1):";""; 2506 2505 } 2507 execute("ring newR=("+charstr(R)+"),(x,y),dp;");2506 ring newR = create_ring(ringlist(R)[1], "(x,y)", "dp", "no_minpoly"); 2508 2507 //the singularities at the affine part 2509 2508 map sigma=S,var(1),var(2),1; … … 2720 2719 } 2721 2720 2722 execute("ring B=("+charstr(S)+"),a,dp;");2721 ring B = create_ring(ringlist(R)[1], "(a)", "dp", "no_minpoly"); 2723 2722 map beta=S,a,a; 2724 2723 poly p=beta(p); 2725 2724 2726 execute("ring C=("+charstr(S)+",a),(x,y),ds;"); 2725 list L1 = char(S), list("a"), list(list("lp", intvec(1))), ideal(0); 2726 ring C = create_ring(L1, "(x,y)", "ds"); 2727 2727 minpoly=number(imap(B,p)); 2728 2728 -
Singular/LIB/poly.lib
rd90fef r67b671 730 730 if (attrib(br,"global")==1) 731 731 { 732 execute("ring R=("+charstr(br)+"),(@x(1..n),@z),dp;");732 ring R = create_ring(ringlist(br)[1],"(@x(1..n),@z)","dp","no_minpoly"); 733 733 } 734 734 else -
Singular/LIB/primdec.lib
rd90fef r67b671 2564 2564 2565 2565 indep=maxIndependSet(j); 2566 2567 execute("ring gnir1 = ("+charstr(basering)+"),("+indep[1][1]+"),(" 2568 +indep[1][2]+");"); 2566 ring gnir1 = create_ring(ringlist(basering)[1],"("+indep[1][1]+")","("+indep[1][2]+")","no_minpoly"); 2569 2567 if(homo==1) 2570 2568 { … … 3112 3110 newva[size(newva)]=")"; 3113 3111 newma[size(newma)]=";"; 3114 execute("ring @deirf=("+charstr(gnir)+"),("+newva+",lp;");3112 ring @deirf = create_ring(ringlist(gnir)[1],"("+newva,"lp","no_minpoly"); 3115 3113 execute("map @kappa=gnir,"+newma); 3116 3114 ideal @j= @kappa(@j); … … 3337 3335 @j=fetch(@P,i); 3338 3336 } 3339 execute("ring gnir1 = ("+charstr(basering)+"),("+indep[@m][1]+"),(" 3340 +indep[@m][2]+");"); 3337 ring gnir1 = create_ring(ringlist(basering)[1],"("+indep[@m][1]+")","("+indep[@m][2]+")","no_minpoly"); 3341 3338 execute("map phi=gnir,"+@va+";"); 3342 3339 op=option(get); … … 3646 3643 { 3647 3644 @va=string(maxideal(1)); 3648 execute("ring gnir1 = ("+charstr(basering)+"),("+ 3649 restindep[@m][1]+"),(" +restindep[@m][2]+");"); 3645 ring gnir1 = create_ring(ringlist(basering)[1],"("+restindep[@m][1]+")","("+restindep[@m][2]+")","no_minpoly"); 3650 3646 execute("map phi=gnir,"+@va+";"); 3651 3647 op=option(get); … … 4614 4610 def oldring=basering; 4615 4611 string n=system("neworder",PS); 4616 execute("ring r=("+charstr(oldring)+"),("+n+"),dp;");4612 ring r = create_ring(ringlist(oldring)[1],"("+n+")","dp","no_minpoly"); 4617 4613 ideal PS=imap(oldring,PS); 4618 4614 matrix m=char_series(PS); // We compute an irreducible … … 4629 4625 for(i=1;i<nvars(oldring);i++) { n=n+","+string(var(i)); } 4630 4626 kill r; 4631 execute("ring r=("+charstr(oldring)+"),("+n+"),dp;");4627 ring r = create_ring(ringlist(oldring)[1],"("+n+")","dp","no_minpoly"); 4632 4628 ideal PS=imap(oldring,PS); 4633 4629 matrix m=char_series(PS); … … 5272 5268 5273 5269 U[size(U)]=")"; // we compute the extractor of I (w.r.t. U) 5274 execute("ring RAU=("+charstr(basering)+"),("+A+U+",(dp("+string(a)+"),dp);");5270 ring RAU = create_ring(ringlist(basering)[1],"("+A+U,"(dp("+string(a)+"),dp)","no_minpoly"); 5275 5271 ideal I=imap(R,SI); 5276 5272 //I=std(I,hv); // the standard basis in (R[U])[A] … … 6763 6759 @va = string(maxideal(1)); 6764 6760 6765 execute("ring gnir1 = (" + charstr(basering) + "), (" + indep[@m][1] + "),(" 6766 + indep[@m][2] + ");"); 6761 ring gnir1 = create_ring(ringlist(basering)[1],"(" + indep[@m][1] + ")","(" + indep[@m][2] + ")","no_minpoly"); 6767 6762 execute("map phi = @P," + @va + ";"); 6768 6763 ideal @j = groebner(phi(I)); … … 7325 7320 string(timer-time)); 7326 7321 //---------------- compute characteristic polynomial of matrix -------------- 7327 execute("ring P1=("+charstr(R)+"),T,dp;");7322 ring P1 = create_ring(ringlist(R)[1],"T","dp","no_minpoly"); 7328 7323 matrix n=imap(R,n); 7329 7324 time = timer; … … 7355 7350 //Hence it is better to simultaneously reduce with I. For this we need a new 7356 7351 //ring. 7357 execute("ring P=("+charstr(R)+"),(T,"+varstr(R)+"),(dp(1),dp);");7352 ring P = create_ring(ringlist(R)[1],"(T,"+varstr(R)+")","(dp(1),dp)","no_minpoly"); 7358 7353 list rfac=imap(P1,fac); 7359 7354 intvec ov=option(get);; … … 7652 7647 newva[size(newva)]=")"; 7653 7648 newma[size(newma)]=";"; 7654 execute("ring @deirf=("+charstr(gnir)+"),("+newva+",lp;");7649 ring @deirf = create_ring(ringlist(gnir)[1],"("+newva,"lp","no_minpoly"); 7655 7650 execute("map @kappa=gnir,"+newma); 7656 7651 ideal @j= @kappa(@j); … … 8043 8038 { 8044 8039 @va=string(maxideal(1)); 8045 execute("ring gnir1 = ("+charstr(basering)+"),("+ 8046 restindep[@m][1]+"),(" +restindep[@m][2]+");"); 8040 ring gnir1 = create_ring(ringlist(basering)[1],"(" +restindep[@m][1]+")","(" +restindep[@m][2]+")","no_minpoly"); 8047 8041 execute("map phi=gnir,"+@va+";"); 8048 8042 op=option(get); … … 8387 8381 //} 8388 8382 //======================= 8389 execute("ring gnir1 = ("+charstr(basering)+"),("+indepInfo[1]+"),(" 8390 +indepInfo[2]+");"); 8383 ring gnir1 = create_ring(ringlist(basering)[1],"("+indepInfo[1]+")","(" +indepInfo[2]+")","no_minpoly"); 8391 8384 execute("map phi=gnir,"+@va+";"); 8392 8385 op=option(get); -
Singular/LIB/primdecint.lib
rd90fef r67b671 1241 1241 //=== K[i]/f; does not work in rings with integer! This should be replaced 1242 1242 //=== later 1243 execute("ring Rhelp=0,("+varstr(R)+"),dp;");1243 ring Rhelp = create_ring(0,"("+varstr(R)+")","dp","no_minpoly"); 1244 1244 ideal K=imap(R,K); 1245 1245 poly f=imap(R,f); … … 1282 1282 if (not attrib(I,"isSB") ) { print ("// ** I is no standard basis"); } 1283 1283 def R=basering; 1284 execute("ring Rhelp=0,("+varstr(R)+"),dp;");1284 ring Rhelp = create_ring(0,"("+varstr(R)+")","dp","no_minpoly"); 1285 1285 ideal I=imap(R,I); 1286 1286 poly f=imap(R,f); -
Singular/LIB/primitiv.lib
rd90fef r67b671 40 40 { 41 41 def altring=basering; 42 execute("ring deglexring=("+charstr(altring)+"),("+varstr(altring)+"),dp;");42 ring deglexring = create_ring(ringlist(altring)[1],"("+varstr(altring)+")","dp","no_minpoly"); 43 43 ideal j; 44 execute("ring lexring=("+charstr(altring)+"),("+varstr(altring)+"),lp;");44 ring lexring = create_ring(ringlist(altring)[1],"("+varstr(altring)+")","lp","no_minpoly"); 45 45 ideal i=fetch(altring,i); 46 46 -
Singular/LIB/schubert.lib
rd90fef r67b671 1907 1907 variety P; 1908 1908 P.dimension = n; 1909 execute("ring r = 0, ("+h+"), wp(1);");1909 ring r = create_ring(0,"("+h+")","wp(1)","no_minpoly"); 1910 1910 setring r; 1911 1911 P.baseRing = r; … … 1965 1965 A.dimension = r - 1 + B.dimension; 1966 1966 poly c = totalChernClass(S); 1967 execute("ring P = 0, ("+z+"), wp(1);");1967 ring P = create_ring(0,"("+z+")","wp(1)","no_minpoly"); 1968 1968 def CR = P + R; 1969 1969 setring CR; -
Singular/LIB/teachstd.lib
rd90fef r67b671 757 757 int ii; 758 758 def bas = basering; 759 execute("ring @r_locstd 760 =("+charstr(bas)+"),(local@t,"+varstr(bas)+"),(dp(1),dp);"); 759 ring @r_locstd = create_ring(ringlist(bas)[1],"(local@t,"+varstr(bas)+")","(dp(1),dp)","no_minpoly"); 761 760 ideal id = imap(bas,id); 762 761 ideal hid = homog(id,local@t);
Note: See TracChangeset
for help on using the changeset viewer.