Changeset 891692 in git
- Timestamp:
- Apr 18, 2005, 4:50:56 PM (18 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- c0eb11ed4b9c2fcf9078e34ece905585ee5ec7b2
- Parents:
- b30ac0f73ca4f9793dfafad24d726a79bdc7c13b
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/polys.h
rb30ac0 r891692 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: polys.h,v 1. 3 2005-01-27 16:42:15 Singular Exp $ */6 /* $Id: polys.h,v 1.4 2005-04-18 14:50:55 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT - all basic methods to manipulate polynomials of the … … 417 417 poly pPolys2Vec(polyset p, int len); 418 418 void pVec2Polys(poly v, polyset *p, int *len); 419 int pVar(poly m); 419 int p_Var(poly mi,const ring r); 420 #define pVar(m) p_Var(m,currRing) 420 421 421 422 /*-----------specials for spoly-computations--------------*/ -
kernel/polys1.cc
rb30ac0 r891692 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.1 2 2005-04-11 15:59:28Singular Exp $ */4 /* $Id: polys1.cc,v 1.13 2005-04-18 14:50:56 Singular Exp $ */ 5 5 6 6 /* … … 1631 1631 } 1632 1632 1633 int p Var(poly m)1633 int p_Var(poly m,const ring r) 1634 1634 { 1635 1635 if (m==NULL) return 0; 1636 1636 if (pNext(m)!=NULL) return 0; 1637 1637 int i,e=0; 1638 for (i= pVariables; i>0; i--)1639 { 1640 if (p GetExp(m,i)==1)1638 for (i=r->N; i>0; i--) 1639 { 1640 if (p_GetExp(m,i,r)==1) 1641 1641 { 1642 1642 if (e==0) e=i;
Note: See TracChangeset
for help on using the changeset viewer.