Changeset 61197f in git
- Timestamp:
- Oct 29, 2009, 4:55:50 PM (14 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '00e2e9c41af3fde1273eb3633f4c0c7c3db2579d')
- Children:
- 3b9cf64cc4481c348f8e1d222c5e90f75390d920
- Parents:
- 7d60f7ef29be846d8ebb02dd71d5c04294bc7831
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r7d60f7 r61197f 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.32 7 2009-10-21 15:36:00 seelischExp $ */4 /* $Id: extra.cc,v 1.328 2009-10-29 15:55:50 monerjan Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 3476 3476 /*======== GFAN ==============*/ 3477 3477 /* 3478 WILL HAVE TO CHANGE RETURN TYPE TO LIST_CMD3478 WILL HAVE TO CHANGE RETURN TYPE TO LIST_CMD 3479 3479 */ 3480 3480 if (strcmp(sys_cmd,"gfan")==0) 3481 3481 { 3482 if ((h==NULL) || (h!=NULL && h->Typ()!=IDEAL_CMD)) 3483 { 3484 Werror("system(\"gfan\"...) Ideal expected"); 3485 return TRUE; //Ooooops 3486 } 3487 ideal I=((ideal)h->Data()); 3488 res->rtyp=IDEAL_CMD; 3489 res->data=(ideal) gfan(I); 3482 // if ((h==NULL) || (h!=NULL && h->Typ()!=IDEAL_CMD)) 3483 // { 3484 // Werror("system(\"gfan\"...) Ideal expected"); 3485 // return TRUE; //Ooooops 3486 // } 3487 // else if(h->next==NULL) 3488 // { 3489 // Werror("gfan expects an integer parameter"); 3490 // return TRUE; 3491 // } 3492 // else if(h->next!=NULL && h->next->Typ()!=INT_CMD) 3493 // { 3494 // Werror("1st parameter ist no integer"); 3495 // return TRUE; 3496 // } 3497 /* 3498 heuristic: 3499 0 = keep all Gröbner bases in memory 3500 1 = write all Gröbner bases to disk and read whenever necessary 3501 2 = use a mixed heuristic, based on length of Gröbner bases 3502 */ 3503 if( h!=NULL && h->Typ()==IDEAL_CMD && h->next!=NULL && h->next->Typ()==INT_CMD) 3504 { 3505 int heuristic; 3506 heuristic=(int)(long)h->next->Data(); 3507 ideal I=((ideal)h->Data()); 3508 res->rtyp=IDEAL_CMD; 3509 res->data=(ideal) gfan(I,heuristic); 3510 return FALSE; 3511 } 3512 else 3513 { 3514 WerrorS("Usage: system(\"gfan\",I,int)"); 3515 return TRUE; 3516 } 3490 3517 //res->rtyp=LIST_CMD; 3491 3518 //res->data= ??? 3492 3519 3493 return FALSE; //Everything went fine3520 // return FALSE; //Everything went fine 3494 3521 } 3495 3522 else
Note: See TracChangeset
for help on using the changeset viewer.