Changeset c623f27 in git


Ignore:
Timestamp:
Oct 6, 2010, 8:10:20 PM (14 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
Children:
ce136a3deb909101f53d2844ba9fdd9bdc1c7842
Parents:
3561bd1ffefd8ae194f9d9ec57e0d2d9d54be51c
Message:
format

git-svn-id: file:///usr/local/Singular/svn/trunk@13405 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular/LIB
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/dmodapp.lib

    r3561bd rc623f27  
    606606      if (sl>2)
    607607      {
    608         if (typeof(l[3])<>"string"){wronginput = 1;}
    609         if (sl>3){wronginput = 1;}
     608        if (typeof(l[3])<>"string"){wronginput = 1;}
     609        if (sl>3){wronginput = 1;}
    610610      }
    611611    }
     
    15121512      if (size(#)>2)
    15131513      {
    1514         if (typeof(#[3])=="intvec")
    1515         {
    1516           if (size(#[3])==2*n && allPositive(#[3])==1)
    1517           {
    1518             homogweights = #[3];
    1519           }
    1520           else
    1521           {
    1522             print("// Homogenization weight vector must consist of positive entries and be");
    1523             print("// of size " + string(n) + ". Using weight (1,...,1).");
    1524           }
    1525         }
     1514        if (typeof(#[3])=="intvec")
     1515        {
     1516          if (size(#[3])==2*n && allPositive(#[3])==1)
     1517          {
     1518            homogweights = #[3];
     1519          }
     1520          else
     1521          {
     1522            print("// Homogenization weight vector must consist of positive entries and be");
     1523            print("// of size " + string(n) + ". Using weight (1,...,1).");
     1524          }
     1525        }
    15261526      }
    15271527    }
     
    15691569  }
    15701570  def Dh = nc_algebra(1,@relD);
    1571   setring Dh; kill @Dh; 
     1571  setring Dh; kill @Dh;
    15721572  dbprint(ppl-1,"// computing in ring",Dh);
    15731573  // 2. Compute the initial ideal
     
    18861886      if (typeof(#[2])=="int" || typeof(#[2])=="number")
    18871887      {
    1888         l0 = int(#[2]);
    1889         l0set = 1;
     1888        l0 = int(#[2]);
     1889        l0set = 1;
    18901890      }
    18911891      if (size(#)>2)
    18921892      {
    1893         if (typeof(#[3])=="ideal")
     1893        if (typeof(#[3])=="ideal")
    18941894        {
    1895           G = #[3];
    1896           Gset = 1;
    1897         }
     1895          G = #[3];
     1896          Gset = 1;
     1897        }
    18981898      }
    18991899    }
     
    20142014      for (k=1; k<=ncols(B); k++)
    20152015      {
    2016         p = B[k]*G[i];
    2017         p = f(p);
    2018         M[size(M)+1] = p;
     2016        p = B[k]*G[i];
     2017        p = f(p);
     2018        M[size(M)+1] = p;
    20192019      }
    20202020    }
     
    21922192      if (M[1,i]<>0)
    21932193      {
    2194         v = M[2..r,i];
    2195         if (v == zm)
    2196         {
    2197           J[size(J+1)] = M[1,i];
    2198         }
     2194        v = M[2..r,i];
     2195        if (v == zm)
     2196        {
     2197          J[size(J+1)] = M[1,i];
     2198        }
    21992199      }
    22002200    }
     
    23022302      if (v[i] == v[i+1])
    23032303      {
    2304         ERROR("No double entries allowed in intvec");
     2304        ERROR("No double entries allowed in intvec");
    23052305      }
    23062306    }
     
    23712371      if (v[i] == v[i+1])
    23722372      {
    2373         ERROR("No double entries allowed in intvec");
     2373        ERROR("No double entries allowed in intvec");
    23742374      }
    23752375    }
     
    24532453      if (typeof(#[2])=="int" || typeof(#[2])=="number")
    24542454      {
    2455         l0 = int(#[2]);
    2456         l0set = 1;
     2455        l0 = int(#[2]);
     2456        l0set = 1;
    24572457      }
    24582458      if (size(#)>2)
    24592459      {
    2460         if (typeof(#[3])=="ideal")
     2460        if (typeof(#[3])=="ideal")
    24612461        {
    2462           G = #[3];
    2463           Gset = 1;
    2464         }
     2462          G = #[3];
     2463          Gset = 1;
     2464        }
    24652465      }
    24662466    }
     
    24762476      if (v == intvec(0))
    24772477      {
    2478         v[1] = i;
     2478        v[1] = i;
    24792479      }
    24802480      else
    24812481      {
    2482         v[size(v)+1] = i;
     2482        v[size(v)+1] = i;
    24832483      }
    24842484    }
     
    26162616      if (allPositive(#[1])==1)
    26172617      {
    2618         w = #[1];
     2618        w = #[1];
    26192619      }
    26202620      else
    26212621      {
    2622         print("// Entries of intvec must be strictly positive");
    2623         print("// Using weight " + string(w));
     2622        print("// Entries of intvec must be strictly positive");
     2623        print("// Using weight " + string(w));
    26242624      }
    26252625      if (size(#)>1)
    26262626      {
    2627         if (typeof(#[2])=="int" || typeof(#[2])=="number")
     2627        if (typeof(#[2])=="int" || typeof(#[2])=="number")
    26282628        {
    2629           whichengine = int(#[2]);
    2630         }
    2631         if (size(#)>2)
     2629          whichengine = int(#[2]);
     2630        }
     2631        if (size(#)>2)
    26322632        {
    2633           if (typeof(#[3])=="int" || typeof(#[3])=="number")
     2633          if (typeof(#[3])=="int" || typeof(#[3])=="number")
    26342634          {
    2635             l0 = int(#[3]);
    2636             l0set = 1;
    2637           }
    2638           if (size(#)>3)
     2635            l0 = int(#[3]);
     2636            l0set = 1;
     2637          }
     2638          if (size(#)>3)
    26392639          {
    2640             if (typeof(#[4])=="ideal")
     2640            if (typeof(#[4])=="ideal")
    26412641            {
    2642               G = #[4];
    2643               Gset = 1;
    2644             }
    2645           }
    2646         }
     2642              G = #[4];
     2643              Gset = 1;
     2644            }
     2645          }
     2646        }
    26472647      }
    26482648    }
     
    26582658      if (v == intvec(0))
    26592659      {
    2660         v[1] = i;
     2660        v[1] = i;
    26612661      }
    26622662      else
    26632663      {
    2664         v[size(v)+1] = i;
     2664        v[size(v)+1] = i;
    26652665      }
    26662666    }
     
    27112711      while (p<N[j])
    27122712      {
    2713         j++;
     2713        j++;
    27142714      }
    27152715      N = insertGenerator(N,p,j+1);
     
    27622762      if(typeof(#[2])=="int" || typeof(#[2])=="number")
    27632763      {
    2764         l0 = int(#[2]);
    2765         l0given = 1;
     2764        l0 = int(#[2]);
     2765        l0given = 1;
    27662766      }
    27672767    }
  • Singular/LIB/ncfactor.lib

    r3561bd rc623f27  
    12681268       w = D; D=X; X=w;
    12691269     }
    1270      // DONE with assumptions   
     1270     // DONE with assumptions
    12711271     //Input successfully checked
    12721272     intvec lexpofX = leadexp(X);
  • Singular/LIB/normal.lib

    r3561bd rc623f27  
    43634363        // I = I1 \cap I2
    43644364        printlevel = printlevel + 1;
    4365         ideal JDefault = 0;             // Now it uses the default J;
     4365        ideal JDefault = 0; // Now it uses the default J;
    43664366        list nor1 = normalM(Id1, decomp, withDelta, denomOption, JDefault, JDefault)[1];
    43674367        list nor2 = normalM(Id2, decomp, withDelta, denomOption, JDefault, JDefault)[1];
  • Singular/LIB/primitiv.lib

    r3561bd rc623f27  
    226226        countz++;
    227227        if (countz>=grad2)
    228         { ERROR("No primitive element found!! This should NEVER happen!"); }
     228        { ERROR("No primitive element found!! This should NEVER happen!"); }
    229229      }
    230230      g = g +x^countx *z^countz;
     
    234234        mat=coeffs(mat[countz+1,1],x);
    235235        if (size(mat)>countx)
    236         {
     236        {
    237237          if (mat[countx+1,1] != 0)
    238           {
     238          {
    239239            found=1;         // d.h. hier: neues g gefunden
    240240      }}}
Note: See TracChangeset for help on using the changeset viewer.