Changeset fa19d3 in git
- Timestamp:
- Nov 22, 2006, 10:43:27 PM (17 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 688c5f840bb21a424c4b9fa6527595a7dd39d409
- Parents:
- 0d8f37995e9b1387eccdb6e605e94ea50e2f0942
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/involut.lib
r0d8f37 rfa19d3 1 version="$Id: involut.lib,v 1.1 0 2006-11-13 11:35:28 SingularExp $";1 version="$Id: involut.lib,v 1.11 2006-11-22 21:43:27 levandov Exp $"; 2 2 category="Noncommutative"; 3 3 info=" … … 435 435 matrix Rel = RelMatr(); //the matrix of relations 436 436 437 string s = new_var(); //string of new variables437 string @ss = new_var(); //string of new variables 438 438 string Par = parstr(@B); //string of parameters in old ring 439 439 440 440 if (Par=="") // if there are no parameters 441 441 { 442 execute("ring @@K=0,("+varstr(@B)+","+ s+"), dp;"); //new ring with new variables442 execute("ring @@K=0,("+varstr(@B)+","+@ss+"), dp;"); //new ring with new variables 443 443 } 444 444 else //if there exist parameters 445 445 { 446 execute("ring @@K=(0,"+Par+") ,("+varstr(@B)+","+ s+"), dp;");//new ring with new variables446 execute("ring @@K=(0,"+Par+") ,("+varstr(@B)+","+@ss+"), dp;");//new ring with new variables 447 447 }; 448 448 … … 498 498 if ( Par=="" ) //initializes the ring of relations 499 499 { 500 execute("ring @@KK=0,("+ s+"), dp;");500 execute("ring @@KK=0,("+@ss+"), dp;"); 501 501 } 502 502 else 503 503 { 504 execute("ring @@KK=(0,"+Par+"),("+ s+"), dp;");504 execute("ring @@KK=(0,"+Par+"),("+@ss+"), dp;"); 505 505 }; 506 506 ideal J = imap(@@K,J); // ideal, considered in @@KK now 507 507 string snv = "["+string(NVars)+"]"; 508 execute("matrix @@D"+snv+snv+"="+ s+";"); // matrix with entries=new variables508 execute("matrix @@D"+snv+snv+"="+@ss+";"); // matrix with entries=new variables 509 509 510 510 J = J, ideal( @@D*@@D-matrix( freemodule(NVars) ) ); // add the condition that involution to square is just identity … … 562 562 matrix Rel = RelMatr(); //the matrix of relations 563 563 564 string s = new_var_special(); //string of new variables564 string @ss = new_var_special(); //string of new variables 565 565 string Par = parstr(@B); //string of parameters in old ring 566 566 567 567 if (Par=="") // if there are no parameters 568 568 { 569 execute("ring @@K=0,("+varstr(@B)+","+ s+"), dp;"); //new ring with new variables569 execute("ring @@K=0,("+varstr(@B)+","+@ss+"), dp;"); //new ring with new variables 570 570 } 571 571 else //if there exist parameters 572 572 { 573 execute("ring @@K=(0,"+Par+") ,("+varstr(@B)+","+ s+"), dp;");//new ring with new variables573 execute("ring @@K=(0,"+Par+") ,("+varstr(@B)+","+@ss+"), dp;");//new ring with new variables 574 574 }; 575 575 … … 621 621 if ( Par=="" ) //initializes the ring of relations 622 622 { 623 execute("ring @@KK=0,("+ s+"), dp;");623 execute("ring @@KK=0,("+@ss+"), dp;"); 624 624 } 625 625 else 626 626 { 627 execute("ring @@KK=(0,"+Par+"),("+ s+"), dp;");627 execute("ring @@KK=(0,"+Par+"),("+@ss+"), dp;"); 628 628 }; 629 629
Note: See TracChangeset
for help on using the changeset viewer.