Changeset 2d19a1b in git for Singular/polys1.cc


Ignore:
Timestamp:
Feb 27, 2001, 7:06:35 PM (23 years ago)
Author:
Mathias Schulze <mschulze@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0936ad6711f0a6991a14ecc189209f979f6054df
Parents:
8cfee1c3269a440dc074eae208795fd4da490c0e
Message:
*mschulze: redNF with paramters, MinDegW


git-svn-id: file:///usr/local/Singular/svn/trunk@5286 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/polys1.cc

    r8cfee1c r2d19a1b  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: polys1.cc,v 1.64 2001-02-08 13:46:36 Singular Exp $ */
     4/* $Id: polys1.cc,v 1.65 2001-02-27 18:06:35 mschulze Exp $ */
    55
    66/*
     
    11851185}
    11861186
     1187int pMinDegW(poly p,intvec *w)
     1188{
     1189  if(p==NULL)
     1190    return -1;
     1191  int n=0;
     1192  if(w!=NULL)
     1193    n=w->length();
     1194  if(pVariables<n)
     1195    n=pVariables;
     1196  int d=-1;
     1197  while(p!=NULL)
     1198  {
     1199    int d0=0;
     1200    for(int j=0;j<n;j++)
     1201      d0+=(*w)[j]*pGetExp(p,j+1);
     1202    if(d0<d||d==-1)
     1203      d=d0;
     1204    pIter(p);
     1205  }
     1206  return d;
     1207}
     1208
    11871209poly pSeries(int n,poly p,poly u=NULL)
    11881210{
     
    12051227  if(n==0)
    12061228    return v;
    1207   /* u0 is pGetCoeff(v) */ 
    12081229  poly u1=pJet(pSub(pOne(),pMult_nn(u,u0)),n);
    12091230  if(u1==NULL)
Note: See TracChangeset for help on using the changeset viewer.