Changeset 7a5fd5 in git for Singular/extra.cc
- Timestamp:
- Oct 13, 2016, 5:32:46 PM (8 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
- Children:
- 7ffb4bcdad71af1ab7691d1c8544911a9b902128
- Parents:
- 488bf28ce21dbdca62e23e85309e403e926731b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r488bf28 r7a5fd5 315 315 } 316 316 return TRUE; 317 } 318 else 319 /*===== nc_hilb ===============================================*/ 320 // Hilbert series of non-commutative monomial algebras 321 if(strcmp(sys_cmd,"nc_hilb") == 0) 322 { 323 ideal i; 324 int lV; 325 bool ig = FALSE; 326 if((h != NULL)&&(h->Typ() == IDEAL_CMD)) 327 i = (ideal)h->Data(); 328 else 329 { 330 WerrorS("ideal expected"); 331 return TRUE; 332 } 333 h = h->next; 334 if((h != NULL)&&(h->Typ() == INT_CMD)) 335 lV = (int)(long)h->Data(); 336 else 337 { 338 WerrorS("int expected"); 339 return TRUE; 340 } 341 h = h->next; 342 if(h != NULL) 343 ig = TRUE; 344 HilbertSeries_OrbitData(i,lV,ig); 345 return(FALSE); 317 346 } 318 347 else … … 3046 3075 else 3047 3076 #endif 3048 /*====================================================== 3049 * Hilbert series of non-commutative monomial algebras 3050 *======================================================*/ 3051 if(strcmp(sys_cmd,"nc_hilb") == 0) 3052 { 3053 ideal i; 3054 int lV; 3055 bool ig = FALSE; 3056 if((h != NULL)&&(h->Typ() == IDEAL_CMD)) 3057 i = (ideal)h->Data(); 3058 else 3059 { 3060 WerrorS("ideal expected"); 3061 return TRUE; 3062 } 3063 h = h->next; 3064 if((h != NULL)&&(h->Typ() == INT_CMD)) 3065 lV = (int)(long)h->Data(); 3066 else 3067 { 3068 WerrorS("int expected"); 3069 return TRUE; 3070 } 3071 h = h->next; 3072 if(h != NULL) 3073 ig = TRUE; 3074 HilbertSeries_OrbitData(i,lV,ig); 3075 return(FALSE); 3076 } 3077 else 3078 3079 /*==================== sca?AltVar ==================================*/ 3077 /*==================== sca:AltVar ==================================*/ 3080 3078 #ifdef HAVE_PLURAL 3081 3079 if ( (strcmp(sys_cmd, "AltVarStart") == 0) || (strcmp(sys_cmd, "AltVarEnd") == 0) )
Note: See TracChangeset
for help on using the changeset viewer.