Changeset 891692 in git


Ignore:
Timestamp:
Apr 18, 2005, 4:50:56 PM (18 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
Children:
c0eb11ed4b9c2fcf9078e34ece905585ee5ec7b2
Parents:
b30ac0f73ca4f9793dfafad24d726a79bdc7c13b
Message:
*hannes: p_Var from 2-0


git-svn-id: file:///usr/local/Singular/svn/trunk@7842 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/polys.h

    rb30ac0 r891692  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    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 $ */
    77/*
    88* ABSTRACT - all basic methods to manipulate polynomials of the
     
    417417poly  pPolys2Vec(polyset p, int len);
    418418void  pVec2Polys(poly v, polyset *p, int *len);
    419 int   pVar(poly m);
     419int   p_Var(poly mi,const ring r);
     420#define   pVar(m) p_Var(m,currRing)
    420421
    421422/*-----------specials for spoly-computations--------------*/
  • kernel/polys1.cc

    rb30ac0 r891692  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys1.cc,v 1.12 2005-04-11 15:59:28 Singular Exp $ */
     4/* $Id: polys1.cc,v 1.13 2005-04-18 14:50:56 Singular Exp $ */
    55
    66/*
     
    16311631}
    16321632
    1633 int pVar(poly m)
     1633int p_Var(poly m,const ring r)
    16341634{
    16351635  if (m==NULL) return 0;
    16361636  if (pNext(m)!=NULL) return 0;
    16371637  int i,e=0;
    1638   for (i=pVariables; i>0; i--)
    1639   {
    1640     if (pGetExp(m,i)==1)
     1638  for (i=r->N; i>0; i--)
     1639  {
     1640    if (p_GetExp(m,i,r)==1)
    16411641    {
    16421642      if (e==0) e=i;
Note: See TracChangeset for help on using the changeset viewer.