Changeset 309f67 in git


Ignore:
Timestamp:
Oct 15, 1997, 10:05:23 AM (27 years ago)
Author:
Wilfred Pohl <pohl@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
96c1fd15447bd64a7e673f1b32ea12a74a9a73d7
Parents:
b5ae525ed6a2020a638241140d0a4aabbc162e57
Message:
bugs in kbase


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

Legend:

Unmodified
Added
Removed
  • Singular/hdegree.cc

    rb5ae52 r309f67  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: hdegree.cc,v 1.5 1997-10-15 07:58:51 Singular Exp $ */
     4/* $Id: hdegree.cc,v 1.6 1997-10-15 08:05:23 pohl Exp $ */
    55/*
    66*  ABSTRACT -  dimension, multiplicity, HC, kbase
     
    11551155  if (Istc < Nstc)
    11561156  {
     1157    for (i=Nstc-1; i>=0; i--)
     1158    {
     1159      if (stc[i] && (stc[i][Nvar] >= y))
     1160      {
     1161        Istc--;
     1162        stc[i] = NULL;
     1163      }
     1164    }
    11571165    j = 0;
    11581166    while (stc[j]) j++;
     
    12291237  sn = hGetmem(Nstc, stc, stcmem[Ivar]);
    12301238  x = scRestrict(Nstc, sn, Nvar);
    1231   if (x < 0) ideg = deg;
    1232   else
    1233   {
    1234     if (Nstc == 0)
    1235     {
    1236       if (deg >= x) return;
    1237       act[Nvar] = deg;
    1238       for (i=Ivar; i; i--) act[i] = 0;
    1239       scElKbase();
    1240       return;
    1241     }
     1239  if (x <= 0)
     1240  {
     1241    if (x == 0) return;
     1242    ideg = deg;
     1243  }
     1244  else
     1245  {
    12421246    if (deg < x) ideg = deg;
    12431247    else ideg = x-1;
     1248    if (Nstc == 0)
     1249    {
     1250      scAllKbase(Nvar, ideg, deg);
     1251      return;
     1252    }
    12441253  }
    12451254  loop
     
    13021311  sn = hGetmem(Nstc, stc, stcmem[Ivar]);
    13031312  x = scRestrict(Nstc, sn, Nvar);
    1304   if (Nstc == 0)
    1305   {
    1306     if (x == 0) return;
    1307     for (i=Ivar; i; i--) act[i] = 0;
    1308     do
    1309     {
    1310       x--;
    1311       act[Nvar] = x;
    1312       scElKbase();
    1313     } while(x > 0);
    1314     return;
    1315   }
     1313  if (x == 0) return;
    13161314  ideg = x-1;
    13171315  loop
     
    14311429
    14321430
    1433 
Note: See TracChangeset for help on using the changeset viewer.