Changeset 18dd47 in git for Singular/LIB/finvar.lib


Ignore:
Timestamp:
Aug 12, 1997, 4:01:11 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
Children:
573ae7acc2dadf68863ca5ee07211c1e9a07b3fb
Parents:
9e76269b6654f6e38d3546d04b318c6693f2f4d9
Message:
* hannes: changed int / into div in
          HNPuiseux.lib finvar.lib general.lib homolog.lib matrix.lib
          poly.lib prim_dec.lib primdec.lib random.lib


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/finvar.lib

    r9e7626 r18dd47  
    1 // $Header: /exports/cvsroot-2/cvsroot/Singular/LIB/finvar.lib,v 1.3 1997-08-04 14:46:49 Singular Exp $
     1// $Header: /exports/cvsroot-2/cvsroot/Singular/LIB/finvar.lib,v 1.4 1997-08-12 14:01:05 Singular Exp $
    22////////////////////////////////////////////////////////////////////////////////
    33// send bugs and comments to agnes@math.uni-sb.de
     
    958958  { if (i<p^j)                         // finding an upper bound on i
    959959    { for (k=0;k<j-1;k=k+1)
    960       { out=out+((i/p^k)%p)*a^k;       // finding how often p^k is contained in
     960      { out=out+((i div p^k)%p)*a^k;   // finding how often p^k is contained in
    961961      }                                // i
    962       out=out+(i/p^(j-1))*a^(j-1);
     962      out=out+(i div p^(j-1))*a^(j-1);
    963963      if (defined(bool)=voice)
    964964      { return((-1)*out);
     
    988988  for (i=2;i<=m;i=i+1)
    989989  { degvec[i]=deg(Q[i]);
    990     lcm=lcm*degvec[i]/gcd(lcm,degvec[i]); // lcm is now the least common
     990    lcm=lcm*degvec[i] div gcd(lcm,degvec[i]); // lcm is now the least common
    991991  }                                    // multiple of the first i elements of Q
    992992  ideal A(1)=Q;
    993993  for (i=1;i<=m;i=i+1)
    994   { A(1)[i]=(A(1)[i])^(lcm/degvec[i]); // now all elements in A(1) are of the
     994  { A(1)[i]=(A(1)[i])^(lcm div degvec[i]); // now all elements in A(1) are of the
    995995  }                                    // same degree, they are the elements of
    996996                                       // Q raised to a power -
     
    10011001  kill I;
    10021002  if ((n%2)==0)                        // H(1) ought to be of the form:
    1003   { j=int(n)/int(2);                   // 1,0,...,0,0,1,0,...,0
     1003  { j=n div 2;                         // 1,0,...,0,0,1,0,...,0
    10041004  }                                    // 0,0,...,0,1,0,0,...,0
    10051005  else                                 //      .           .
    1006   { j=int(n-1)/int(2);                 //      .           .
     1006  { j=(n-1) div 2;                     //      .           .
    10071007  }                                    //      .           .
    10081008  for (i=1;i<=j;i=i+1)                 // 1,0,...,0,0,0,0,...,0
     
    11431143  { d=d*deg(P[i]);                     // building the product of the degrees of
    11441144  }                                    // primary invariants -
    1145   int bound=d/g;                       // number of secondary invariants
     1145  int bound=d div g;                   // number of secondary invariants
    11461146  if (v)
    11471147  { "  The invariant ring is Cohen-Macaulay.";
    1148     "  We need to find "+string(d)+"/"+string(g)+"="+string(bound)+" secondary invariants.";
     1148    "  We need to find "+string(d)+" div "+string(g)+"="+string(bound)+" secondary invariants.";
    11491149    "";
    11501150  }
Note: See TracChangeset for help on using the changeset viewer.