Changeset 7f5789 in git for Singular/LIB/freegb.lib


Ignore:
Timestamp:
Jan 18, 2020, 10:59:58 PM (4 years ago)
Author:
Karim Abou Zeid <karim23697@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38dfc5131670d387a89455159ed1e071997eec94')
Children:
c417af59af93bdad5278db69f84585a318ee2ba5
Parents:
da6d43a81ee1ba91b8ecae7bb3a89f608e66b354
git-author:
Karim Abou Zeid <karim23697@gmail.com>2020-01-18 22:59:58+01:00
git-committer:
Karim Abou Zeid <karim23697@gmail.com>2020-01-18 23:05:58+01:00
Message:
Fix fpaprops for ncgen and add tests
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/freegb.lib

    rda6d43a r7f5789  
    2626lpDegBound(R);                   returns the degree bound of a letterplace ring
    2727lpVarBlockSize(R);               returns the size of the letterplace blocks
     28lpNcgenCount(R);                 returns the number of ncgen variables
    2829lpDivision(f,I);                 two-sided division with remainder
    2930lpGBPres2Poly(L,I);              reconstructs a polynomial from the output of lpDivision
     
    10041005  def R = freeAlgebra(r, 7);
    10051006  isFreeAlgebra(R);
     1007}
     1008
     1009proc lpNcgenCount(def R)
     1010"USAGE:  lpNcgenCount(R); R a letterplace ring
     1011RETURN:  int
     1012PURPOSE: returns the number of ncgen variables in the letterplace ring.
     1013EXAMPLE: example ncgenCount; shows examples
     1014"
     1015{
     1016  return(attrib(R, "ncgenCount"));
     1017}
     1018example
     1019{
     1020  "EXAMPLE:"; echo = 2;
     1021  ring r = 0,(x,y,z),dp;
     1022  def R = freeAlgebra(r, 7, 10);
     1023  lpNcgenCount(R); // should be 10
    10061024}
    10071025
Note: See TracChangeset for help on using the changeset viewer.