Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/numericalsgps/gap/   (GAP Algebra Version 4.15.1©)  Datei vom 30.7.2024 mit Größe 3 kB image not shown  

Quelle  databases.gi   Sprache: Shell

 

###########################################################################
##
#F  NumericalSemigroupsWithMaxPrimitivePC(M)
##
## Reads from the Pre-Computed database the set of numerical semigroups with
## maximum primitive M
#############################################################################
InstallGlobalFunction(NumericalSemigroupsWithMaxPrimitivePC,
 function(M)
  local dir,max,file,L,pair,s,list;
  dir:=DirectoriesPackageLibrary( "numericalsgps", "data/maxprim");
  # max is the maximum M stored in the database
  max := Length(DirectoryContents(dir[1]))-2; # the -2 is to not count "." and ".."

  if M > max then
    Info(InfoNumSgps,1,"The set of numerical semigroups with maximum primitive ",M," is not in the database in use. If the maximum primitive you are interested in is still reasonably small, please send an email to mdelgado@fc.up.pt for an enlarged database, or use the (much slower function) NumericalSemigroupsWithMaxPrimitive");
  else
    list:=EvalString(StringFile(Filename(dir,Concatenation("maxprim",String(M),".gl"))));
    L:=[];
    for pair in list do
      s := NumericalSemigroup(pair[1]);
      SetSmallElements(s,pair[2]);
      Add(L,s);
    od;
    return L;
  fi;
end);

###########################################################################
##
#F  NumericalSemigroupsWithGenusPC(M)
##
## Reads from the database the set of numerical semigroups with
## genus M (M must be smaller than .. )
#############################################################################
InstallGlobalFunction(NumericalSemigroupsWithGenusPC,
 function(M)
  local dir,max,file,L,pair,s,list;
  dir:=DirectoriesPackageLibrary( "numericalsgps", "data/genus");
  # max is the maximum M stored in the database
  max := Length(DirectoryContents(dir[1]))-2; # the -2 is to not count "." and ".."

  if M > max then
    Info(InfoNumSgps,1,"The set of numerical semigroups with genus ",M," is not in the database in use. If the genus you are interested in is still reasonably small, please send an email to mdelgado@fc.up.pt for an enlarged database, or use the (much slower function) NumericalSemigroupsWithMaxPrimitive");
  else
    list:=EvalString(StringFile(Filename(dir,Concatenation("genus",String(M),".gl"))));
    L:=[];
    for pair in list do
      s := NumericalSemigroup(pair[1]);
      SetSmallElements(s,pair[2]);
      Add(L,s);
    od;
    return L;
  fi;
end);

###########################################################################
##
#F  NumericalSemigroupsWithFrobeniusNumberPC(M)
##
## Reads from the database the set of numerical semigroups with
## Frobenius number M (M must be smaller than .. )
#############################################################################
InstallGlobalFunction(NumericalSemigroupsWithFrobeniusNumberPC,
 function(M)
  local dir,max,file,L,pair,s,list;
  dir:=DirectoriesPackageLibrary( "numericalsgps", "data/frobenius");
  # max is the maximum M stored in the database
  max := Length(DirectoryContents(dir[1]))-2; # the -2 is to not count "." and ".."

  if M > max then
    Info(InfoNumSgps,1,"The set of numerical semigroups with Frobenius number ",M," is not in the database in use. If the Frobenius number you are interested in is still reasonably small, please send an email to mdelgado@fc.up.pt for an enlarged database, or use the (much slower function) NumericalSemigroupsWithMaxPrimitive");
  else
    list:=EvalString(StringFile(Filename(dir,Concatenation("frobenius",String(M),".gl"))));
    L:=[];
    for pair in list do
      s := NumericalSemigroup(pair[1]);
      SetSmallElements(s,pair[2]);
      Add(L,s);
    od;
    return L;
  fi;
end);

Messung V0.5 in Prozent
C=68 H=75 G=71

¤ Dauer der Verarbeitung: 0.25 Sekunden  (vorverarbeitet am  2026-10-11) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.