Changeset 453c2d in git


Ignore:
Timestamp:
Nov 22, 2006, 10:40:29 PM (17 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
0d8f37995e9b1387eccdb6e605e94ea50e2f0942
Parents:
24e56ccf41ae2c738ecb93810f84af186c73c6f5
Message:
*levandov: replaced std with groebner, aux vars y through @y


git-svn-id: file:///usr/local/Singular/svn/trunk@9510 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/sagbi.lib

    r24e56cc r453c2d  
    11//////////////////////////////////////////////////////////////////////////////
    2 version="$Id: sagbi.lib,v 1.4 2005-06-07 10:05:19 Singular Exp $";
     2version="$Id: sagbi.lib,v 1.5 2006-11-22 21:40:29 levandov Exp $";
    33category="Commutative Algebra";
    44info="
     
    5050  if(b!=0)
    5151    {
    52       id =reduce(id,std(0));
     52      id =reduce(id,groebner(0));
    5353    }
    5454  int n,m=nvars(bsr),ncols(id);
     
    7575    //==================create anew ring with extra variables================
    7676
    77       execute("ring R1="+charstr(bsr)+",("+varstr(bsr)+",y(1..m)),(dp(n),dp(m));");
     77      execute("ring R1="+charstr(bsr)+",("+varstr(bsr)+",@y(1..m)),(dp(n),dp(m));");
    7878      execute("minpoly=number("+mp+");");
    7979      ideal id=imap(bsr,id);
     
    8282      for(z=1;z<=m;z++)
    8383        {
    84           A[z]=lead(id[z])-y(z);
    85         }
    86 
    87       A=std(A);
     84          A[z]=lead(id[z])-@y(z);
     85        }
     86
     87      A=groebner(A);
    8888      ideal kern=nselect(A,1,n);// "kern" is the kernel of the ring map:
    8989                           // R1----->bsr ;y(z)----> lead(id[z]).
     
    151151
    152152  if(size(I)==0)
    153     {@result=std(J);}
     153    {@result=groebner(J);}
    154154
    155155  if((size(I)!=0) && (size(J)-size(I)>=1))
     
    158158      qring Q=I;
    159159      ideal J=fetch(br,J);
    160       J=std(J);
     160      J=groebner(J);
    161161      setring br;
    162162      Res=fetch(Q,J);// Res contains the generators that we add to I
     
    188188  if(b!=0)
    189189    {
    190       I=reduce(I,std(0));
    191       J=reduce(J,std(0));
     190      I=reduce(I,groebner(0));
     191      J=reduce(J,groebner(0));
    192192    }
    193193
     
    214214      //================create a new ring with extra variables==============
    215215
    216       execute("ring R1="+charstr(R)+",("+varstr(R)+",y((ii+1)..(ii+jj))),(dp(n),dp(kk+jj-n));");
     216      execute("ring R1="+charstr(R)+",("+varstr(R)+",@y((ii+1)..(ii+jj))),(dp(n),dp(kk+jj-n));");
    217217      ideal kern1;
    218218      ideal A=fetch(R,A);
     
    288288  if(b !=0) //means that the basering is a quotient ring
    289289    {
    290       p=reduce(p,std(0));
    291       dom=reduce(dom,std(0));
     290      p=reduce(p,groebner(0));
     291      dom=reduce(groebner,std(0));
    292292    }
    293293
     
    359359     if(choose==2)
    360360       {
    361          ideal kern= nselect(std(dom),1,n);//"nselect" is combinatorial command
     361         ideal kern= nselect(groebner(dom),1,n);//"nselect" is combinatorial command
    362362                                         //which uses the internal command
    363363                                        // "simplify"
Note: See TracChangeset for help on using the changeset viewer.