Changeset f52b35d in git
- Timestamp:
- Mar 4, 2007, 7:24:46 PM (17 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 112e09d6ab39fad0f75d42a5618b98a6a70f20e3
- Parents:
- cbc372f1d6bba1dc057875ed3c0faeac5d926e88
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/extra.cc
rcbc372 rf52b35d 2 2 * Computer Algebra System SINGULAR * 3 3 *****************************************/ 4 /* $Id: extra.cc,v 1.2 49 2007-01-11 11:24:12 SingularExp $ */4 /* $Id: extra.cc,v 1.250 2007-03-04 18:24:46 levandov Exp $ */ 5 5 /* 6 6 * ABSTRACT: general interface to internals of Singular ("system" command) … … 84 84 #include "sca.h" 85 85 #include "ipconv.h" 86 #include "ratgring.h" 86 87 #endif 87 88 … … 676 677 } 677 678 else 678 679 #endif 679 680 #ifdef HAVE_PLURAL 680 681 /*==================== Approx_Step =================*/ 681 682 683 684 685 686 687 688 689 690 691 692 693 694 682 if (strcmp(sys_cmd, "astep") == 0) 683 { 684 ideal I; 685 if ((h!=NULL) && (h->Typ()==IDEAL_CMD)) 686 { 687 I=(ideal)h->CopyD(); 688 res->rtyp=IDEAL_CMD; 689 if (rIsPluralRing(currRing)) res->data=Approx_Step(I); 690 else res->data=I; 691 setFlag(res,FLAG_STD); 692 } 693 else return TRUE; 694 return FALSE; 695 } 695 696 /*==================== PrintMat =================*/ 696 697 697 if (strcmp(sys_cmd, "PrintMat") == 0) 698 { 698 699 int a; 699 700 int b; … … 1866 1867 #include "mpsr.h" 1867 1868 #include "mod_raw.h" 1869 #include "ratgring.h" 1868 1870 1869 1871 static BOOLEAN jjEXTENDED_SYSTEM(leftv res, leftv h) … … 2611 2613 return TRUE; 2612 2614 } 2615 else 2616 /*==================== RatNF, noncomm rational coeffs =================*/ 2617 if (strcmp(sys_cmd, "ratNF") == 0) 2618 { 2619 poly p,q; 2620 int is; 2621 if ((h!=NULL) && (h->Typ()==POLY_CMD)) 2622 { 2623 p=(poly)h->CopyD(); 2624 h=h->next; 2625 } 2626 else return TRUE; 2627 if ((h!=NULL) && (h->Typ()==POLY_CMD)) 2628 { 2629 q=(poly)h->CopyD(); 2630 h=h->next; 2631 } 2632 else return TRUE; 2633 if ((h!=NULL) && (h->Typ()==INT_CMD)) 2634 { 2635 is=(int)((long)(h->Data())); 2636 res->rtyp=POLY_CMD; 2637 if (rIsPluralRing(currRing)) 2638 { 2639 res->data = nc_rat_ReduceSpolyNew(p, q, is, currRing); 2640 } 2641 else res->data=p; 2642 } 2643 else return TRUE; 2644 return FALSE; 2645 } 2646 else 2613 2647 #endif 2614 2648 /*==================== t-rep-GB ==================================*/ … … 2871 2905 else 2872 2906 */ 2907 2908 2873 2909 #endif 2874 2910 /*==================== Error =================*/
Note: See TracChangeset
for help on using the changeset viewer.