Changeset 309f67 in git
- Timestamp:
- Oct 15, 1997, 10:05:23 AM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 96c1fd15447bd64a7e673f1b32ea12a74a9a73d7
- Parents:
- b5ae525ed6a2020a638241140d0a4aabbc162e57
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/hdegree.cc
rb5ae52 r309f67 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: hdegree.cc,v 1. 5 1997-10-15 07:58:51 SingularExp $ */4 /* $Id: hdegree.cc,v 1.6 1997-10-15 08:05:23 pohl Exp $ */ 5 5 /* 6 6 * ABSTRACT - dimension, multiplicity, HC, kbase … … 1155 1155 if (Istc < Nstc) 1156 1156 { 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 } 1157 1165 j = 0; 1158 1166 while (stc[j]) j++; … … 1229 1237 sn = hGetmem(Nstc, stc, stcmem[Ivar]); 1230 1238 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 { 1242 1246 if (deg < x) ideg = deg; 1243 1247 else ideg = x-1; 1248 if (Nstc == 0) 1249 { 1250 scAllKbase(Nvar, ideg, deg); 1251 return; 1252 } 1244 1253 } 1245 1254 loop … … 1302 1311 sn = hGetmem(Nstc, stc, stcmem[Ivar]); 1303 1312 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; 1316 1314 ideg = x-1; 1317 1315 loop … … 1431 1429 1432 1430 1433
Note: See TracChangeset
for help on using the changeset viewer.