Changeset aa74213 in git
- Timestamp:
- Oct 9, 2009, 2:24:16 PM (14 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 70f63ab39d1a6a435e42e041336a21e13c1269d9
- Parents:
- 6094f40a4b25fd0a3a901bd854053d0df6b84df3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/longalg.cc
r6094f4 raa74213 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: longalg.cc,v 1.5 7 2009-10-09 12:21:25Singular Exp $ */4 /* $Id: longalg.cc,v 1.58 2009-10-09 12:24:16 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: algebraic numbers … … 165 165 166 166 #define napSetCoeff(p,n) {n_Delete(&pGetCoeff(p),nacRing);pGetCoeff(p)=n;} 167 #define napDelete1(p) p_LmDelete((poly *)p, nacRing)168 167 #define napComp(p,q) p_LmCmp((poly)p,(poly)q, nacRing) 169 168 #define napMultT(A,E) A=(napoly)p_Mult_mm((poly)A,(poly)E,nacRing) … … 516 515 if (nacIsZero(pGetCoeff(a))) 517 516 { 518 napDelete1(&a);517 p_LmDelete(&a,nacRing); 519 518 *b = NULL; 520 519 return s; … … 748 747 if (!nacIsOne(pGetCoeff(g))) 749 748 napMultN(y, pGetCoeff(g)); 750 napDelete1(&g);749 p_LmDelete(&g,nacRing); 751 750 return y; 752 751 } … … 757 756 } 758 757 p_Delete(&y,nacRing); 759 napDelete1(&h);758 p_LmDelete(&h,nacRing); 760 759 napSetExp(g,1, napExp(a, b)); 761 760 p_Setm(g,nacRing); … … 1834 1833 if (nacIsOne(pGetCoeff(y))) 1835 1834 { 1836 napDelete1(&y);1835 p_LmDelete(&y,nacRing); 1837 1836 p->n = NULL; 1838 1837 naTest(pp); … … 1843 1842 napMultN(x, h1); 1844 1843 n_Delete(&h1,nacRing); 1845 napDelete1(&y);1844 p_LmDelete(&y,nacRing); 1846 1845 p->n = NULL; 1847 1846 naTest(pp); … … 1909 1908 if (p_GetExp(y,1,nacRing)==0) 1910 1909 { 1911 napDelete1(&y);1910 p_LmDelete(&y,nacRing); 1912 1911 p->n = NULL; 1913 1912 }
Note: See TracChangeset
for help on using the changeset viewer.