Changeset eaf8f8 in git for Singular/LIB/dmodapp.lib
- Timestamp:
- Mar 9, 2009, 7:34:52 PM (15 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- b22a72d3cf5f625b056ece9285f0442601763cf0
- Parents:
- e6d283f58657a6d67f7a592a1e62a50f9464d936
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/dmodapp.lib
re6d283f reaf8f8 1 1 ////////////////////////////////////////////////////////////////////////////// 2 version="$Id: dmodapp.lib,v 1.2 1 2009-03-06 20:32:29levandov Exp $";2 version="$Id: dmodapp.lib,v 1.22 2009-03-09 18:34:52 levandov Exp $"; 3 3 category="Noncommutative"; 4 4 info=" … … 1522 1522 } 1523 1523 } 1524 1524 1525 // 1. create homogenized Weyl algebra 1525 1526 // 1.1 create ordering … … 1556 1557 def Dh = nc_algebra(1,@relD); 1557 1558 setring Dh; kill @Dh; 1558 dbprint(ppl,"// computing in ring",D Dh);1559 dbprint(ppl,"// computing in ring",Dh); 1559 1560 // 2. Compute the initial ideal 1560 1561 ideal I = imap(save,I); … … 1653 1654 u0 = 1:n; 1654 1655 } 1655 if (isCommutative() == 0) { ERROR("basering must be commutative"); }1656 1656 if (char(save) <> 0) { ERROR("characteristic of basering has to be 0"); } 1657 1657 // creating the homogenized extended Weyl algebra 1658 1658 list RL = ringlist(save); 1659 RL = RL[1..4]; // if basering is commutative nc_algebra 1659 1660 list C0 = list("C",intvec(0)); 1660 1661 // 1. get the weighted degree of f … … 1779 1780 } 1780 1781 1781 staticproc dmodappassumeViolation()1782 proc dmodappassumeViolation() 1782 1783 { 1783 1784 // returns Boolean : yes/no [for assume violation] 1784 1785 // char K = 0 1785 1786 // no qring 1786 // input poly/ideal is nonzero ?1787 if ( (char(basering) !=0 ) || (nvars(basering) != gkdim(std(0)) ) )1788 {1787 if ( (size(ideal(basering)) >0) || (char(basering) >0) ) 1788 { 1789 // "ERROR: no qring is allowed"; 1789 1790 return(1); 1790 1791 }
Note: See TracChangeset
for help on using the changeset viewer.