Changeset 67b671 in git


Ignore:
Timestamp:
Jun 29, 2019, 4:20:05 PM (5 years ago)
Author:
Sachin <sachinkm308@…>
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
Message:
Replaced execute with create_ring() functions
Location:
Singular/LIB
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/ainvar.lib

    rd90fef r67b671  
    102102
    103103  //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");
    105105  poly inv,delta,tee,j;
    106106  ideal id=imap(bsr,id);
     
    214214
    215215  //------------- 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");
    218217  //constructs the leading ideal of dom=(p-@(0),dom[1]-@(1),...,dom[z]-@(z))
    219218     ideal dom=imap(bsr,dom);
  • Singular/LIB/alexpoly.lib

    rd90fef r67b671  
    657657  int e=ncols(gr);
    658658  // 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");
    660660  poly hilfspoly=1;
    661661  poly alexnumerator=1;    // numerator of the Alexander polynomial
  • Singular/LIB/ehv.lib

    rd90fef r67b671  
    742742                  poly g1 = L[1][1];
    743743                  //..and insert f in g1...
    744                   execute("ring newR = (" + charstr(R) + "),(y(1)),(" + ordstr(R) + ");");
    745                   poly g2 = imap(R,g1);
     744                  ring newR = create_ring(ringlist(R)[1], "(y(1))", "(" + ordstr(R) + ")", "no_minpoly");
     745                  poly g2 = imap(R,g1);
    746746                  setring base;
    747747                  h = fetch(newR,g2);
     
    10391039              ideal homoJ = fetch(base,K);
    10401040              homoJ = groebner(homoJ);
    1041               execute("ring newR = (" + charstr(base) + "),(x(1..n),t),dp;");
    1042               ideal homoK = fetch(homoR,homoJ);
     1041              ring newR = create_ring(ringlist(base)[1], "(x(1..n),t)", "dp", "no_minpoly");
     1042              ideal homoK = fetch(homoR,homoJ);
    10431043              homoK = homog(homoK,t);
    10441044              attrib(homoK,"isEquidimensional",1);
  • Singular/LIB/general.lib

    rd90fef r67b671  
    709709      if ( typeof(#[1])=="string" )
    710710      {
    711          execute("ring r1 =("+charstr(P)+"),("+varstr(P)+"),("+#[1]+");");
     711         ring r1 = create_ring(ringlist(P)[1],"("+varstr(P)+")","("+#[1]+")","no_minpoly");
    712712         def i = imap(P,id);
    713713         v = sortvec(i);
  • Singular/LIB/gitfan.lib

    rd90fef r67b671  
    266266  newVars = newVars+string(var(k));
    267267  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");
    270269  ideal I = satstd(imap(origin,I));
    271270  I = simplify(I,2+4+32);
  • Singular/LIB/grwalk.lib

    rd90fef r67b671  
    236236   def xR = basering;
    237237
    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   
    239240   def old_ring = basering;
    240241
     
    292293   def xR = basering;
    293294
    294    execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");
     295   ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly");
    295296   def old_ring = basering;
    296297   //print("//** help ring = " + string(basering));
     
    328329   option(redSB);
    329330   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");
    332332   def old_ring = basering;
    333333   //print("//** help ring = " + string(basering));
     
    377377   option(redSB);   def xR = basering;
    378378
    379    execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");
     379   ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly");
    380380   def old_ring = basering;
    381381
     
    435435  def xR = basering;
    436436
    437   execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");
     437  ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly");
    438438  def old_ring = basering;
    439439
     
    483483  def xR = basering;
    484484
    485   execute("ring ostR = ("+charstr(xR)+"),("+varstr(xR)+"),"+ord_str+";");
     485  ring ostR = create_ring(ringlist(xR)[1],"("+varstr(xR)+")",ord_str,"no_minpoly");
    486486  def old_ring = basering;
    487487
  • Singular/LIB/hnoether.lib

    rd90fef r67b671  
    281281  //if ((char(basering)!=0) and (charstr(basering)!=string(char(basering))))
    282282  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");
    284284  if ((gcd_ok!=0) && (mipl!="0")) { execute("minpoly="+mipl+";"); }
    285285  poly f=fetch(altring,f);
     
    365365   ERROR(" Sorry -- not implemented for this ring (gcd doesn't work)");
    366366 }
    367  execute("ring rsqrf = ("+charstr(altring)+"),(x,y),dp;");
     367 ring rsqrf = create_ring(ringlist(altring)[1],"(x,y)","dp","no_minpoly");
    368368 if (mipl!="0") { execute("minpoly="+mipl+";"); }
    369369 poly f=fetch(altring,f);
     
    552552 if (ringwechsel) {
    553553   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");
    555555   if ((char(basering)==0) && (mipl!="0")) {
    556556     execute("minpoly="+mipl+";");
     
    21682168  {
    21692169    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");
    21712171    poly f=imap(@Rold,f);
    21722172  }
     
    24572457     {
    24582458       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     }
    24612461       else {                                  // ring (p,a),...
    24622462        string mipl=string(minpoly);
     
    24662466     }
    24672467     else {
    2468        execute("ring extdguenstig=("+charstr(basering)+"),(x,y),ls;");
     2468       ring extdguenstig = create_ring(ringlist(basering)[1],"(x,y)","ls","no_minpoly");
    24692469     }
    24702470  }
     
    29222922     "// ** extension occurs during the calculation, we cannot proceed with";
    29232923     "// ** 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");
    29252925   }
    29262926   else {
     
    40534053   { // Ringwechsel hatte stattgefunden
    40544054     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");
    40574056     execute("minpoly="+ mipl_alt +";");
    40584057     list HNEs=imap(EXTHNEring(EXTHNEnumber),HNEs);
  • Singular/LIB/linalg.lib

    rd90fef r67b671  
    370370  def BR=basering;
    371371  //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");
    373373  execute("minpoly="+mp+";");
    374374  matrix A=imap(BR,A);
  • Singular/LIB/matrix.lib

    rd90fef r67b671  
    10681068
    10691069//------------------------- 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");
    10721071//------------------------- choose symmetric basis -------------------------
    10731072  ideal symBasis = maxideal(k);
     
    11161115
    11171116//------------------------- 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");
    11191118
    11201119//------------------------- choose exterior basis -------------------------
  • Singular/LIB/modwalk.lib

    rd90fef r67b671  
    481481   ideal xI = args[1];
    482482   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");
    484484   ideal yI = fetch(xR,xI);
    485485   ideal yresult = fetch(xR,result);
  • Singular/LIB/mprimdec.lib

    rd90fef r67b671  
    283283
    284284      @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");
    286286      module @N=std(imap(BAS,@N));
    287287                                  // this is also a standard basis in (R[U])[A]
     
    670670  }
    671671  @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");
    673673  module @N=std(imap(BAS,@N));  // this is also a standard basis in (R[U])[A]
    674674  @A[size(@A)]=")";
     
    773773     }
    774774  }
    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");
    776776  ideal @a=ideal(imap(LBAS,@i),imap(LBAS,@j));
    777777  poly @p=lcm(@a);
     
    14941494       newva[size(newva)]=")";
    14951495       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");
    14971497       execute("map @kappa=BAS,"+newma);
    14981498       ideal @j = @kappa(ann);
     
    15511551    for (@k2=1;@k2<=szIndep;@k2++)
    15521552    {
    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");
    15541554      module @N=std(imap(BAS,@N)); // the standard basis in (R[U])[A]
    15551555      execute("ring Rloc=("+charstr(basering)+","+indep[@k1][@k2][2]+"),("+indep[@k1][@k2][1]+"),(C,dp);");
     
    21532153   if(ordstr(basering)[1,2]!="dp")
    21542154   {
    2155       execute("ring @Phelp=("+charstr(@P)+"),("+varstr(@P)+"),(C,dp);");
     2155      ring @Phelp = create_ring(ringlist(@P)[1],"("+varstr(@P)+")","(C,dp)","no_minpoly");
    21562156      module inew=std(imap(@P,id));
    21572157      ideal  @h=imap(@P,h1);
  • Singular/LIB/normal.lib

    rd90fef r67b671  
    24172417   poly p=I[1];
    24182418
    2419    execute("ring S=("+charstr(R)+"),(x,y,t),dp;");
     2419   ring S = create_ring(ringlist(R)[1],"(x,y,t)","dp","no_minpoly");
    24202420   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");
    24222422   ideal I;
    2423    execute("ring A=("+charstr(R)+"),(x,t),dp;");
     2423   ring A = create_ring(ringlist(R)[1], "(x,t)", "dp", "no_minpoly");
    24242424   map phi=S,1,x,t;
    24252425   map psi=S,x,1,t;
    24262426   poly g,h;
    24272427   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");
    24302429   setring S;
    24312430   if(o)
     
    25052504      "singularities at (x,y,1):";"";
    25062505   }
    2507    execute("ring newR=("+charstr(R)+"),(x,y),dp;");
     2506   ring newR = create_ring(ringlist(R)[1], "(x,y)", "dp", "no_minpoly");
    25082507   //the singularities at the affine part
    25092508   map sigma=S,var(1),var(2),1;
     
    27202719      }
    27212720
    2722       execute("ring B=("+charstr(S)+"),a,dp;");
     2721      ring B = create_ring(ringlist(R)[1], "(a)", "dp", "no_minpoly");
    27232722      map beta=S,a,a;
    27242723      poly p=beta(p);
    27252724
    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"); 
    27272727      minpoly=number(imap(B,p));
    27282728
  • Singular/LIB/poly.lib

    rd90fef r67b671  
    730730  if (attrib(br,"global")==1)
    731731  {
    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");
    733733  }
    734734  else
  • Singular/LIB/primdec.lib

    rd90fef r67b671  
    25642564
    25652565  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");
    25692567  if(homo==1)
    25702568  {
     
    31123110      newva[size(newva)]=")";
    31133111      newma[size(newma)]=";";
    3114       execute("ring @deirf=("+charstr(gnir)+"),("+newva+",lp;");
     3112      ring @deirf = create_ring(ringlist(gnir)[1],"("+newva,"lp","no_minpoly");
    31153113      execute("map @kappa=gnir,"+newma);
    31163114      ideal @j= @kappa(@j);
     
    33373335        @j=fetch(@P,i);
    33383336      }
    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");
    33413338      execute("map phi=gnir,"+@va+";");
    33423339      op=option(get);
     
    36463643        {
    36473644          @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");
    36503646          execute("map phi=gnir,"+@va+";");
    36513647          op=option(get);
     
    46144610  def oldring=basering;
    46154611  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");
    46174613  ideal PS=imap(oldring,PS);
    46184614  matrix m=char_series(PS);  // We compute an irreducible
     
    46294625    for(i=1;i<nvars(oldring);i++) { n=n+","+string(var(i)); }
    46304626    kill r;
    4631     execute("ring r=("+charstr(oldring)+"),("+n+"),dp;");
     4627    ring r = create_ring(ringlist(oldring)[1],"("+n+")","dp","no_minpoly");
    46324628    ideal PS=imap(oldring,PS);
    46334629    matrix m=char_series(PS);
     
    52725268
    52735269      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");
    52755271      ideal I=imap(R,SI);
    52765272      //I=std(I,hv);            // the standard basis in (R[U])[A]
     
    67636759      @va = string(maxideal(1));
    67646760
    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");
    67676762      execute("map phi = @P," + @va + ";");
    67686763      ideal @j = groebner(phi(I));
     
    73257320    string(timer-time));
    73267321//---------------- 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");
    73287323  matrix n=imap(R,n);
    73297324  time = timer;
     
    73557350//Hence it is better to simultaneously reduce with I. For this we need a new
    73567351//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");
    73587353    list rfac=imap(P1,fac);
    73597354    intvec ov=option(get);;
     
    76527647      newva[size(newva)]=")";
    76537648      newma[size(newma)]=";";
    7654       execute("ring @deirf=("+charstr(gnir)+"),("+newva+",lp;");
     7649      ring @deirf = create_ring(ringlist(gnir)[1],"("+newva,"lp","no_minpoly");
    76557650      execute("map @kappa=gnir,"+newma);
    76567651      ideal @j= @kappa(@j);
     
    80438038          {
    80448039             @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");
    80478041             execute("map phi=gnir,"+@va+";");
    80488042             op=option(get);
     
    83878381     //}
    83888382//=======================
    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");
    83918384     execute("map phi=gnir,"+@va+";");
    83928385     op=option(get);
  • Singular/LIB/primdecint.lib

    rd90fef r67b671  
    12411241   //=== K[i]/f; does not work in rings with integer! This should be replaced
    12421242   //=== later
    1243    execute("ring Rhelp=0,("+varstr(R)+"),dp;");
     1243   ring Rhelp = create_ring(0,"("+varstr(R)+")","dp","no_minpoly");
    12441244   ideal K=imap(R,K);
    12451245   poly f=imap(R,f);
     
    12821282   if (not attrib(I,"isSB") ) { print ("// ** I is no standard basis"); }
    12831283   def R=basering;
    1284    execute("ring Rhelp=0,("+varstr(R)+"),dp;");
     1284   ring Rhelp = create_ring(0,"("+varstr(R)+")","dp","no_minpoly");
    12851285   ideal I=imap(R,I);
    12861286   poly f=imap(R,f);
  • Singular/LIB/primitiv.lib

    rd90fef r67b671  
    4040{
    4141 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");
    4343 ideal j;
    44  execute("ring lexring=("+charstr(altring)+"),("+varstr(altring)+"),lp;");
     44 ring lexring = create_ring(ringlist(altring)[1],"("+varstr(altring)+")","lp","no_minpoly");
    4545 ideal i=fetch(altring,i);
    4646
  • Singular/LIB/schubert.lib

    rd90fef r67b671  
    19071907    variety P;
    19081908    P.dimension = n;
    1909     execute("ring r = 0, ("+h+"), wp(1);");
     1909    ring r = create_ring(0,"("+h+")","wp(1)","no_minpoly");
    19101910    setring r;
    19111911    P.baseRing = r;
     
    19651965    A.dimension = r - 1 + B.dimension;
    19661966    poly c = totalChernClass(S);
    1967     execute("ring P = 0, ("+z+"), wp(1);");
     1967    ring P = create_ring(0,"("+z+")","wp(1)","no_minpoly");
    19681968    def CR = P + R;
    19691969    setring CR;
  • Singular/LIB/teachstd.lib

    rd90fef r67b671  
    757757  int ii;
    758758  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");
    761760  ideal id = imap(bas,id);
    762761  ideal hid = homog(id,local@t);
Note: See TracChangeset for help on using the changeset viewer.