Changeset 0c950b in git
- Timestamp:
- Dec 6, 2000, 1:38:30 PM (23 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- a79bc624a96888a1bce8c52f3c8f6a33640de235
- Parents:
- 675526ab5fbb3d219acfce4b92be03e1929d4a24
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys0.cc
r675526a r0c950b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys0.cc,v 1.1 8 2000-11-28 11:50:56 obachmanExp $ */4 /* $Id: polys0.cc,v 1.19 2000-12-06 12:38:30 Singular Exp $ */ 5 5 6 6 /* … … 26 26 27 27 if (pGetCoeff(p)!=NULL) 28 n Normalize(pGetCoeff(p));28 n_Normalize(pGetCoeff(p),r); 29 29 30 30 if (((p_GetComp(p,r) == (short)ko) 31 31 &&(p_LmIsConstantComp(p, r))) 32 || ((!n IsOne(pGetCoeff(p)))33 && (!n IsMOne(pGetCoeff(p)))32 || ((!n_IsOne(pGetCoeff(p),r)) 33 && (!n_IsMOne(pGetCoeff(p),r)) 34 34 ) 35 35 ) 36 36 { 37 n Write(p->coef);37 n_Write(p->coef,r); 38 38 wroteCoef=(rShortOut(r) == FALSE ||(r->parameter!=NULL)); 39 39 writeGen=TRUE; 40 40 } 41 else if (n IsMOne(pGetCoeff(p)))42 { 43 if (n GreaterZero(pGetCoeff(p)))44 { 45 n Write(p->coef);41 else if (n_IsMOne(pGetCoeff(p),r)) 42 { 43 if (n_GreaterZero(pGetCoeff(p),r)) 44 { 45 n_Write(p->coef,r); 46 46 wroteCoef=(rShortOut(r) == FALSE ||(r->parameter!=NULL)); 47 47 writeGen=TRUE; … … 92 92 while (p!=NULL) 93 93 { 94 if ((p->coef==NULL)||n GreaterZero(p->coef))94 if ((p->coef==NULL)||n_GreaterZero(p->coef,tailRing)) 95 95 StringAppendS("+"); 96 96 writemon(p,0, tailRing); … … 113 113 while ((p!=NULL) && (k == p_GetComp(p, tailRing))) 114 114 { 115 if (n GreaterZero(p->coef)) StringAppendS("+");115 if (n_GreaterZero(p->coef,tailRing)) StringAppendS("+"); 116 116 writemon(p,k,tailRing); 117 117 pIter(p);
Note: See TracChangeset
for help on using the changeset viewer.