Changeset bc9ffda in git
- Timestamp:
- Feb 25, 2005, 6:07:26 PM (19 years ago)
- Branches:
- (u'spielwiese', 'ec94ef7a30b928574c0c3daf41f6804dff5f6b69')
- Children:
- 60dbf7d04c31468876941d0fd0b5459f6dd5b9c4
- Parents:
- 41e418899bda23bfaa5122244dc67751826b1774
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/polys1.cc
r41e418 rbc9ffda 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1. 8 2005-02-17 09:42:22Singular Exp $ */4 /* $Id: polys1.cc,v 1.9 2005-02-25 17:07:26 Singular Exp $ */ 5 5 6 6 /* … … 486 486 487 487 number pInitContent(poly ph); 488 number pInitContent_a(poly ph); 488 489 489 490 void pContent(poly ph) … … 504 505 { 505 506 h=pInitContent(ph); 507 p=ph; 508 } 509 else if (rField_is_Extension()) 510 { 511 h=pInitContent_a(ph); 506 512 p=ph; 507 513 } … … 609 615 610 616 number pInitContent(poly ph) 617 // only for coefficients in Q 611 618 #if 0 612 619 { … … 691 698 } 692 699 #endif 700 701 number pInitContent_a(poly ph) 702 // only for coefficients in K(a) anf K(a,...) 703 { 704 number d=pGetCoeff(ph); 705 int s=naParDeg(d); 706 if (s /* naParDeg(d)*/ ==0) return naCopy(d); 707 int s2=-1; 708 number d2; 709 int ss; 710 loop 711 { 712 pIter(ph); 713 if(ph==NULL) 714 { 715 if (s2==-1) return naCopy(d); 716 break; 717 } 718 if ((ss=naParDeg(pGetCoeff(ph)))<s) 719 { 720 s2=s; 721 d2=d; 722 s=ss; 723 d=pGetCoeff(ph); 724 if (s2==0) break; 725 } 726 } 727 return naGcd(d,d2,currRing); 728 } 693 729 694 730 -
kernel/structs.h
r41e418 rbc9ffda 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: structs.h,v 1. 4 2005-02-17 09:42:22Singular Exp $ */6 /* $Id: structs.h,v 1.5 2005-02-25 17:07:26 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 11 11 #include <string.h> /* for memset */ 12 12 13 #define LONGALGNEW14 13 /* standard types */ 15 14 typedef unsigned char uchar ; … … 107 106 struct sip_package; 108 107 struct s_si_link_extension; 109 #ifndef LONGALGNEW110 struct reca;111 #endif /* not LONGALGNEW */112 108 113 109 typedef struct n_Procs_s n_Procs_s; … … 145 141 typedef ip_command * command; 146 142 typedef struct s_si_link_extension *si_link_extension; 147 #ifndef LONGALGNEW148 typedef struct reca * napoly;149 #else /* LONGALGNEW */150 143 typedef polyrec * napoly; 151 #endif /* LONGALGNEW */152 144 153 145 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.