Changeset 971833a in git


Ignore:
Timestamp:
Mar 18, 2004, 10:34:03 PM (20 years ago)
Author:
Viktor Levandovskyy <levandov@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
67f529fdd2c960bf13602e78f0985f0f3a81e20d
Parents:
b84c3c7204e5d46fd603e346fb83df31274a6caf
Message:
*levandov: CreateWeyl added, regrouped


git-svn-id: file:///usr/local/Singular/svn/trunk@7094 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/nctools.lib

    rb84c3c r971833a  
    11///////////////////////////////////////////////////////////////////////////////
    2 version="$Id: nctools.lib,v 1.1 2004-03-18 20:40:22 levandov Exp $";
     2version="$Id: nctools.lib,v 1.2 2004-03-18 21:34:03 levandov Exp $";
    33category="Noncommutative";
    44info="
    5 LIBRARY: nctools.lib     General Tools for Noncommutative Algebras
     5LIBRARY: nctools.lib     General tools for noncommutative algebras
    66AUTHORS:   Levandovskyy V.,     levandov@mathematik.uni-kl.de,
    77@*         Lobillo, F.J.,    jlobillo@ugr.es,
     
    1717RootOfUnity(n);         Computes the minimal polynomial for the n-th primitive root of unity,
    1818Weyl([p]);              Creates Weyl algebra structure in a basering (two different realizations),
     19CreateWeyl(n, [p]);      Returns n-th Weyl algebra in x(i),D(i) presentation; in char p, if an integer p is given
    1920Heisenberg(N, [p]);     Returns N-th  Heisenberg algebra in x(i),y(i),h(i) realization,
    2021Exterior();             Returns qring, the exterior algebra of a basering,
     
    730731"USAGE:   Heisenberg(N, [p]); N an integer (setting 3*N variables), p an optional integer (field characteristic)
    731732RETURN:  N-th  Heisenberg algebra in x(i),y(i),h(i) realization
     733NOTE: you have to activate this ring with the "setring" command
    732734EXAMPLE: example Heisenberg; shows examples
    733735"
     
    755757  "EXAMPLE:";echo=2;
    756758  def a=Heisenberg(2);
    757   setring a; a;
     759  setring a;
     760  a;
    758761}
    759762
     
    762765proc Exterior(list #)
    763766"USAGE:   Exterior();
    764 RETURN:  qring, the exterior algebra of a basering.
     767RETURN:  qring, the exterior algebra of a basering
     768NOTE: you have to activate this qring with the "setring" command
    765769EXAMPLE: example Exterior; shows examples
    766770"
     
    799803
    800804///////////////////////////////////////////////////////////////////////////////
     805
     806proc CreateWeyl(int n, list #)
     807"USAGE:   CreateWeyl(n,[p]); n an integer, n>0; p an optional integer (field characteristic)
     808RETURN:  a ring, describing n-th Weyl algebra
     809NOTE:    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
     812SEE ALSO: Weyl
     813EXAMPLE: 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}
     832example
     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.