Changeset bc91a6 in git
- Timestamp:
- Mar 31, 2003, 2:29:03 PM (21 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 239c77eb775c22caeb0ee9c5299cb3e6fd4fd94c
- Parents:
- f9fedbcff3a1a4997cf841a058757b252364ce20
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/iparith.cc
rf9fedb rbc91a6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: iparith.cc,v 1.29 3 2003-03-28 10:50:38Singular Exp $ */4 /* $Id: iparith.cc,v 1.294 2003-03-31 12:27:00 Singular Exp $ */ 5 5 6 6 /* … … 4357 4357 { 4358 4358 monomexpr=(poly)w->Data(); 4359 #if 0 4359 4360 if (pLength(monomexpr)>1) 4360 4361 { … … 4363 4364 return TRUE; 4364 4365 } 4366 #endif 4365 4367 if (!(ringvar=pVar((poly)v->Data()))) 4366 4368 { … … 4376 4378 BOOLEAN nok=jjSUBST_Test(v,w,ringvar,monomexpr); 4377 4379 if (nok) return TRUE; 4378 res->data = pSubst((poly)u->CopyD(res->rtyp),ringvar,monomexpr); 4380 if ((monomexpr==NULL)||(pNext(monomexpr)==NULL)) 4381 res->data = pSubst((poly)u->CopyD(res->rtyp),ringvar,monomexpr); 4382 else 4383 res->data = idSubstPoly((ideal)u->Data(),ringvar,monomexpr); 4379 4384 return FALSE; 4380 4385 } … … 4385 4390 BOOLEAN nok=jjSUBST_Test(v,w,ringvar,monomexpr); 4386 4391 if (nok) return TRUE; 4387 res->data = idSubst((ideal)u->CopyD(res->rtyp),ringvar,monomexpr); 4392 if ((monomexpr==NULL)||(pNext(monomexpr)==NULL)) 4393 res->data = idSubst((ideal)u->CopyD(res->rtyp),ringvar,monomexpr); 4394 else 4395 res->data = idSubstPoly((ideal)u->Data(),ringvar,monomexpr); 4388 4396 return FALSE; 4389 4397 } -
Singular/maps.cc
rf9fedb rbc91a6 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: maps.cc,v 1.4 0 2003-03-12 12:27:42Singular Exp $ */4 /* $Id: maps.cc,v 1.41 2003-03-31 12:26:39 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - the mapping of polynomials to other rings … … 672 672 } 673 673 674 /*2 675 * substitutes the variable var (from 1..N) by image, 676 * does not destroy p and image 677 */ 674 678 poly pSubstPoly(poly p, int var, poly image) 675 679 { … … 696 700 } 697 701 702 /*2 703 * substitute the n-th variable by the poly e in id 704 * does not destroy id and e 705 */ 706 ideal idSubstPoly(ideal id, int n, poly e) 707 { 708 int k=MATROWS((matrix)id)*MATCOLS((matrix)id); 709 ideal res=(ideal)mpNew(MATROWS((matrix)id),MATCOLS((matrix)id)); 710 711 res->rank = id->rank; 712 for(k--;k>=0;k--) 713 { 714 res->m[k]=pSubstPoly(id->m[k],n,e); 715 } 716 return res; 717 } -
Singular/maps.h
rf9fedb rbc91a6 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: maps.h,v 1.1 0 2002-03-07 18:48:58Singular Exp $ */6 /* $Id: maps.h,v 1.11 2003-03-31 12:26:39 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT - the mapping of polynomials to other rings … … 24 24 int * perm, int *par_perm, int ch); 25 25 poly pSubstPoly(poly p, int var, poly image); 26 ideal idSubstPoly(ideal id, int n, poly e); 26 27 #endif
Note: See TracChangeset
for help on using the changeset viewer.