Changeset 2ab830 in git
- Timestamp:
- Mar 24, 2011, 11:23:15 AM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- e4e153d5324f38b1cf9800650dbe4e7257b2a6f9
- Parents:
- 1628b149b92bdbe06e7d660a7fd23fea4f95ad3e
- Location:
- Singular/LIB
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/normal.lib
r1628b14 r2ab830 2804 2804 } 2805 2805 /////////////////////////////////////////////////////////////////////////////// 2806 // compute the weighted degree of p 2806 // compute the weighted degree of p; 2807 // this code is an exact copy of the proc in paraplanecurves.lib 2808 // (since we do not want to make it non-static) 2807 2809 static proc w_deg(poly p, intvec v) 2808 2810 { -
Singular/LIB/paraplanecurves.lib
r1628b14 r2ab830 410 410 setring Rp2; 411 411 PARA; 412 } 413 414 /////////////////////////////////////////////////////////////////////////////// 415 // compute the weighted degree of p; 416 // this code is an exact copy of the proc in paraplanecurves.lib 417 // (since we do not want to make it non-static) 418 static proc w_deg(poly p, intvec v) 419 { 420 if(p==0){return(-1);} 421 int d=0; 422 while(jet(p,d,v)==0){d++;} 423 d=(transpose(leadexp(jet(p,d,v)))*v)[1]; 424 return(d); 412 425 } 413 426
Note: See TracChangeset
for help on using the changeset viewer.