Changeset 971833a in git
- Timestamp:
- Mar 18, 2004, 10:34:03 PM (20 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- 67f529fdd2c960bf13602e78f0985f0f3a81e20d
- Parents:
- b84c3c7204e5d46fd603e346fb83df31274a6caf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/nctools.lib
rb84c3c r971833a 1 1 /////////////////////////////////////////////////////////////////////////////// 2 version="$Id: nctools.lib,v 1. 1 2004-03-18 20:40:22levandov Exp $";2 version="$Id: nctools.lib,v 1.2 2004-03-18 21:34:03 levandov Exp $"; 3 3 category="Noncommutative"; 4 4 info=" 5 LIBRARY: nctools.lib General Tools for Noncommutative Algebras5 LIBRARY: nctools.lib General tools for noncommutative algebras 6 6 AUTHORS: Levandovskyy V., levandov@mathematik.uni-kl.de, 7 7 @* Lobillo, F.J., jlobillo@ugr.es, … … 17 17 RootOfUnity(n); Computes the minimal polynomial for the n-th primitive root of unity, 18 18 Weyl([p]); Creates Weyl algebra structure in a basering (two different realizations), 19 CreateWeyl(n, [p]); Returns n-th Weyl algebra in x(i),D(i) presentation; in char p, if an integer p is given 19 20 Heisenberg(N, [p]); Returns N-th Heisenberg algebra in x(i),y(i),h(i) realization, 20 21 Exterior(); Returns qring, the exterior algebra of a basering, … … 730 731 "USAGE: Heisenberg(N, [p]); N an integer (setting 3*N variables), p an optional integer (field characteristic) 731 732 RETURN: N-th Heisenberg algebra in x(i),y(i),h(i) realization 733 NOTE: you have to activate this ring with the "setring" command 732 734 EXAMPLE: example Heisenberg; shows examples 733 735 " … … 755 757 "EXAMPLE:";echo=2; 756 758 def a=Heisenberg(2); 757 setring a; a; 759 setring a; 760 a; 758 761 } 759 762 … … 762 765 proc Exterior(list #) 763 766 "USAGE: Exterior(); 764 RETURN: qring, the exterior algebra of a basering. 767 RETURN: qring, the exterior algebra of a basering 768 NOTE: you have to activate this qring with the "setring" command 765 769 EXAMPLE: example Exterior; shows examples 766 770 " … … 799 803 800 804 /////////////////////////////////////////////////////////////////////////////// 805 806 proc CreateWeyl(int n, list #) 807 "USAGE: CreateWeyl(n,[p]); n an integer, n>0; p an optional integer (field characteristic) 808 RETURN: a ring, describing n-th Weyl algebra 809 NOTE: You have to activate this ring with the "setring" command. 810 The presentation of n-th Weyl algebra is classical: 811 D(i)x(i)=x(i)D(i)+1 812 SEE ALSO: Weyl 813 EXAMPLE: example CreateWeyl; shows examples 814 "{ 815 if (n<1) 816 { 817 Print("Incorrect input"); 818 return(); 819 } 820 int @p = 0; 821 if ( size(#) > 0 ) 822 { 823 if ( typeof( #[1] ) == "int" ) 824 { 825 @p = #[1]; 826 } 827 } 828 ring @rr=@p,(x(1..n),D(1..n)),dp; 829 Weyl(); 830 return(@rr); 831 } 832 example 833 { "EXAMPLE:"; echo = 2; 834 def a = CreateWeyl(3); 835 setring a; 836 a; 837 } 838 839 //////////////////////////////////////////////////////////////////////
Note: See TracChangeset
for help on using the changeset viewer.