Changeset 4869982 in git


Ignore:
Timestamp:
Apr 8, 2009, 7:13:02 PM (15 years ago)
Author:
Motsak Oleksandr <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
06984ae84863612ab64e2e3f8903aa78ef9e0d44
Parents:
9df212d331f045aa0b28d25854ee5041cdbc55f1
Message:
*motsak: sca


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/nctools.lib

    r9df212 r4869982  
    11///////////////////////////////////////////////////////////////////////////////
    2 version="$Id: nctools.lib,v 1.43 2009-03-30 18:11:40 motsak Exp $";
     2version="$Id: nctools.lib,v 1.44 2009-04-08 17:13:02 motsak Exp $";
    33category="Noncommutative";
    44info="
     
    2222Exterior();               return qring, the exterior algebra of a basering,
    2323findimAlgebra(M,[r]);     create finite dimensional algebra structure from the basering and the multiplication matrix M,
    24 SuperCommutative([b,e,Q]);  return qring, the super-commutative algebra over a basering,
     24superCommutative([b,e,Q]);  return qring, the super-commutative algebra over a basering,
    2525rightStd(I);              compute a right Groebner basis of an ideal,
    2626
     
    720720
    721721///////////////////////////////////////////////////////////////////////////////
    722 proc SuperCommutative(list #)
    723 "USAGE:   SuperCommutative([b,[e, [Q, [flag]]]]);
     722proc superCommutative(list #)
     723"USAGE:   superCommutative([b,[e, [Q, [flag]]]]);
    724724RETURN:  qring
    725725PURPOSE:  create the super-commutative algebra (as a GR-algebra) 'over' a basering,
     
    728728THEORY: given a basering, this procedure introduces the anticommutative relations x(j)x(i)=-x(i)x(j) for all e>=j>i>=b,
    729729@* moreover, creates a factor algebra modulo the two-sided ideal, generated by x(b)^2, ..., x(e)^2[ + Q]
    730 EXAMPLE: example SuperCommutative; shows examples
    731 "
    732 {
    733 
    734 // NOTE: as a side effect the basering will be changed (if not in a commutative case) to bo the ground G-algebra (without factor).
    735   int fprot = (find(option(),"prot") != 0);
     730DISPLAY: If @code{printlevel} > 1, warning debug messages will be printed
     731EXAMPLE: example superCommutative; shows examples
     732"
     733{
     734  int fprot = (printlevel > 1); // (find(option(),"prot") != 0);
    736735
    737736  string rname=nameof(basering);
     
    739738  if ( rname == "basering") // i.e. no ring has been set yet
    740739  {
    741     ERROR("You have to call the procedure from the ring");
     740    ERROR("You have to call the procedure from a ring");
    742741    return();
    743742  }
     
    893892  {
    894893    print("Warning: Since the current ordering is not global there might be problems computing twostd(Q)!");
    895     print("Q:", @Q);
     894    "Q:";
     895    @Q;
    896896  }
    897897
     
    909909  "EXAMPLE:";echo=2;
    910910  ring R = 0,(x(1..4)),dp; // global!
    911   def ER = SuperCommutative(); // the same as Exterior (b = 1, e = N)
     911  def ER = superCommutative(); // the same as Exterior (b = 1, e = N)
    912912  setring ER; ER;
    913913  "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "].";
    914914  kill R; kill ER;
    915915  ring R = 0,(x(1..4)),(lp(1), dp(3)); // global!
    916   def ER = SuperCommutative(2); // b = 2, e = N
     916  def ER = superCommutative(2); // b = 2, e = N
    917917  setring ER; ER;
    918918  "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "].";
    919919  kill R; kill ER;
    920920  ring R = 0,(x(1..6)),(ls(2), dp(2), lp(2)); // local!
    921   def ER = SuperCommutative(3,4); // b = 3, e = 4
     921  def ER = superCommutative(3,4); // b = 3, e = 4
    922922  setring ER; ER;
    923923  "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "].";
     
    10921092  "EXAMPLE:";echo=2;
    10931093  ring R = 0,(x(1..4)),dp; // global!
    1094   def ER = SuperCommutative(2); // (b = 2, e = N)
     1094  def ER = superCommutative(2); // (b = 2, e = N)
    10951095  setring ER; ER;
    10961096  "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "].";
     
    11201120  "EXAMPLE:";echo=2;
    11211121  ring R = 0,(x(1..4)),dp; // global!
    1122   def ER = SuperCommutative(2); // (b = 2, e = N)
     1122  def ER = superCommutative(2); // (b = 2, e = N)
    11231123  setring ER; ER;
    11241124  "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "].";
     
    11291129"USAGE:   IsSCA();
    11301130RETURN:  int
    1131 PURPOSE:  returns 1 if basering is a supercommutative algebra and 0 otherwise.
     1131PURPOSE:  returns 1 if basering is a super-commutative algebra and 0 otherwise.
    11321132NOTE:     shows hint message for non-SCA algebras if the 'prot' option is on.
    11331133EXAMPLE: example IsSCA; shows examples
     
    11561156    { "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "]."; }
    11571157  else
    1158     { "Not a supercommutative algebra!!!"; }
     1158    { "Not a super-commutative algebra!!!"; }
    11591159  kill R;
    11601160/////////////////////////////////////////////////////////////////////
     
    11641164    { "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "]."; }
    11651165  else
    1166     { "Not a supercommutative algebra!!!"; }
     1166    { "Not a super-commutative algebra!!!"; }
    11671167  kill R, S;
    11681168/////////////////////////////////////////////////////////////////////
     
    11891189    { "Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "]."; }
    11901190  else
    1191     { "Not a supercommutative algebra!!!"; }
     1191    { "Not a super-commutative algebra!!!"; }
    11921192  kill R, ER, S;
    11931193/////////////////////////////////////////////////////////////////////
    11941194  ring R = 0,(x(1..4)),dp;
    1195   def ER = SuperCommutative(2); // (b = 2, e = N)
     1195  def ER = superCommutative(2); // (b = 2, e = N)
    11961196  setring ER; ER;
    11971197  if(IsSCA())
    11981198    { "This is a SCA! Alternating variables: [", AltVarStart(), ",", AltVarEnd(), "]."; }
    11991199  else
    1200     { "Not a supercommutative algebra!!!"; }
     1200    { "Not a super-commutative algebra!!!"; }
    12011201  kill R, ER;
    12021202}
Note: See TracChangeset for help on using the changeset viewer.