Changeset 4732f8 in git for Singular/extra.cc
- Timestamp:
- Feb 21, 2009, 8:30:56 PM (15 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- cce4a2f69a8341c6b8fbb3f1e78b41bf26ed7970
- Parents:
- 28f16452ba2351e155e944280a5d83ffdfd1ffc8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
r28f164 r4732f8 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.29 5 2009-02-21 15:25:43levandov Exp $ */4 /* $Id: extra.cc,v 1.296 2009-02-21 19:30:56 levandov Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 2705 2705 } 2706 2706 else 2707 /*==================== RatSpoly, noncomm rational coeffs =================*/ 2708 if (strcmp(sys_cmd, "ratSpoly") == 0) 2709 { 2710 poly p,q; 2711 int is; 2712 if ((h!=NULL) && (h->Typ()==POLY_CMD)) 2713 { 2714 p=(poly)h->CopyD(); 2715 h=h->next; 2716 } 2717 else return TRUE; 2718 if ((h!=NULL) && (h->Typ()==POLY_CMD)) 2719 { 2720 q=(poly)h->CopyD(); 2721 h=h->next; 2722 } 2723 else return TRUE; 2724 if ((h!=NULL) && (h->Typ()==INT_CMD)) 2725 { 2726 is=(int)((long)(h->Data())); 2727 res->rtyp=POLY_CMD; 2728 // res->rtyp=IDEAL_CMD; 2729 if (rIsPluralRing(currRing)) 2730 { 2731 res->data = nc_rat_CreateSpoly(p,q,is,currRing); 2732 // res->data = ncGCD(p,q,currRing); 2733 } 2734 else res->data=p; 2735 } 2736 else return TRUE; 2737 return FALSE; 2738 } 2739 else 2707 2740 #endif // HAVE_RATGRING 2708 2741 /*==================== Rat def =================*/
Note: See TracChangeset
for help on using the changeset viewer.