Changeset e3cb559 in git
- Timestamp:
- Dec 10, 2020, 11:02:12 AM (3 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 9ee8586caa6203ffc06f1b7dc54ac0c8f95d1343
- Parents:
- 04fd151aafcc56addbe8a6b608ae2390f6d8df17
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/redcgs.lib
r04fd15 re3cb559 127 127 subset(F,G); If all elements of F belong to the ideal G it returns 1, 128 128 and 0 otherwise. 129 pdivi (f,F);Pseudodivision of a polynomial f by an ideal F in @R. Returns a129 pdivi2(f,F); Pseudodivision of a polynomial f by an ideal F in @R. Returns a 130 130 list (r,q,m) such that m*f=r+sum(q.G). 131 131 facvar(ideal J) Returns all the free-square factors of the elements … … 430 430 431 431 432 // pdivi : pseudodivision of a polynomial f by an ideal F in @R432 // pdivi2 : pseudodivision of a polynomial f by an ideal F in @R 433 433 // in the ring @R 434 434 // input: … … 437 437 // output: 438 438 // list (poly r, ideal q, poly mu) 439 proc pdivi (poly f,ideal F)440 "USAGE: pdivi (f,F);439 proc pdivi2(poly f,ideal F) 440 "USAGE: pdivi2(f,F); 441 441 poly f: the polynomial to be divided 442 442 ideal F: the divisor ideal … … 447 447 list (r,q,m) such that m*f=r+sum(q.G). 448 448 KEYWORDS: division, reduce 449 EXAMPLE: pdivi; shows an example"449 EXAMPLE: example pdivi2; shows an example" 450 450 { 451 451 int i; … … 505 505 poly f=(ab-ac)*xy+(ab)*x+(5c); 506 506 ideal F=ax+b,cy+a; 507 def r=pdivi (f,F);507 def r=pdivi2(f,F); 508 508 r; 509 509 r[3]*f-(r[2][1]*F[1]+r[2][2]*F[2])-r[1]; … … 631 631 NOTE: Should be called from ring @R. Ideals N and W must be polynomials 632 632 in the parameters forming a red-specification (see definition) the papers). 633 KEYWORDS: division, pdivi , reduce633 KEYWORDS: division, pdivi2, reduce 634 634 EXAMPLE: pnormalform; shows an example" 635 635 { … … 933 933 { 934 934 H=delfromideal(F,i); 935 G[i]=pnormalform(pdivi (F[i],H)[1],N,W);935 G[i]=pnormalform(pdivi2(F[i],H)[1],N,W); 936 936 } 937 937 return(G); … … 1219 1219 { 1220 1220 S=pspol(F[i],F[j]); 1221 KK=pdivi (S,F);1221 KK=pdivi2(S,F); 1222 1222 S=KK[1]; 1223 1223 if (S!=0) … … 3760 3760 { 3761 3761 H=delfromideal(F,i); 3762 G[i]=pdivi (F[i],H)[1];3762 G[i]=pdivi2(F[i],H)[1]; 3763 3763 } 3764 3764 return(G);
Note: See TracChangeset
for help on using the changeset viewer.