Changeset 817626 in git
- Timestamp:
- Oct 18, 2005, 3:02:56 PM (19 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
- Children:
- 01e2dfd44b8e96e6877fa3a7c12a1a47582b931d
- Parents:
- 425a9d0c53165e2ddeac88634c96d411e4da63ea
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/absfact.lib
r425a9d r817626 1 version="$Id: absfact.lib,v 1. 3 2005-09-27 16:52:54Singular Exp $";1 version="$Id: absfact.lib,v 1.4 2005-10-18 13:02:56 Singular Exp $"; 2 2 category="Factorization"; 3 3 info=" … … 342 342 (denominator- and content-free) absolute factors of @code{p} equals 343 343 @code{p / absolute_factors[1][1]}. 344 SEE ALSO: factorize 344 SEE ALSO: factorize, absPrimdecGTZ 345 345 EXAMPLE: example absFactorize; shows an example 346 346 " … … 400 400 newvar=#[1]; 401 401 } 402 else 403 { 404 newvar = "a"; 405 } 402 406 } 403 407 else 404 408 { 405 409 newvar = "a"; 410 } 411 if (newvar=="a") 412 { 406 413 if(belongTo(newvar, lMP[2])||defined(a)){newvar = "b";} 407 414 if(belongTo(newvar, lMP[2])||defined(b)){newvar = "c";} … … 496 503 if(#[1]==77) 497 504 { // undocumented feature for Gerhard's absPrimdecGTZ 498 return(string(list(tmpf[2..size(tmpf)],newvar))); 505 if (size(tmpf)<2){ list abs_fac = list(var(n+1),poly(1)); } 506 else { list abs_fac=tmpf[2..size(tmpf)]; } 507 abs_fac=abs_fac,newvar; 508 return(string(abs_fac)); 499 509 } 500 510 } … … 550 560 setring(MP); 551 561 552 if(size(#)>0)553 {554 if(typeof(#[1])=="int")555 {556 if(#[1]==77)557 {558 return(s1);559 }560 }561 }562 562 dbprint( printlevel-voice+3," 563 563 // 'absFactorize' created a ring, in which a list absolute_factors (the
Note: See TracChangeset
for help on using the changeset viewer.