GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
1[1X15 [33X[0;0YMiscellaneous functions[133X[101X23[33X[0;0YThe behaviour of [5Xsimpcomp[105X can be changed by setting cetain global options.4This can be achieved by the functions described in the following.[133X567[1X15.1 [33X[0;0Y[5Xsimpcomp[105X[101X[1X logging[133X[101X89[33X[0;0YThe verbosity of the output of information to the screen during calls to10functions of the package [5Xsimpcomp[105X can be controlled by setting the info11level parameter via the function [2XSCInfoLevel[102X ([14X15.1-1[114X).[133X1213[1X15.1-1 SCInfoLevel[101X1415[29X[2XSCInfoLevel[102X( [3Xlevel[103X ) [32X function16[6XReturns:[106X [33X[0;10Y[9Xtrue[109X[133X1718[33X[0;0YSets the logging verbosity of [5Xsimpcomp[105X. A level of [22X0[122X suppresses all output,19a level of [22X1[122X lets [5Xsimpcomp[105X output normal running information, whereas levels20of [22X2[122X and higher display verbose running information. Examples of functions21using more verbose logging are bistellar flip-related functions.[133X2223[4X[32X Example [32X[104X24[4X[25Xgap>[125X [27XSCInfoLevel(3);[127X[104X25[4X[28Xtrue[128X[104X26[4X[25Xgap>[125X [27Xc:=SCBdCrossPolytope(3);;[127X[104X27[4X[25Xgap>[125X [27XSCReduceComplex(c); [127X[104X28[4X[28X#I round 0, move: [ [ 4, 5 ], [ 1, 2 ] ][128X[104X29[4X[28XF: [ 6, 12, 8 ][128X[104X30[4X[28X#I round 1, move: [ [ 5 ], [ 1, 2, 3 ] ][128X[104X31[4X[28XF: [ 5, 9, 6 ][128X[104X32[4X[28X#I round 1[128X[104X33[4X[28XReduced complex, F: [ 5, 9, 6 ][128X[104X34[4X[28X#I round 2, move: [ [ 3 ], [ 1, 2, 6 ] ][128X[104X35[4X[28XF: [ 4, 6, 4 ][128X[104X36[4X[28X#I round 2[128X[104X37[4X[28XReduced complex, F: [ 4, 6, 4 ][128X[104X38[4X[28X#I SCReduceComplexEx: computed locally minimal complex after 3 rounds.[128X[104X39[4X[28X[ true, [SimplicialComplex[128X[104X40[4X[28X [128X[104X41[4X[28X Properties known: Dim, FacetsEx, Name, Vertices.[128X[104X42[4X[28X [128X[104X43[4X[28X Name="unnamed complex 3"[128X[104X44[4X[28X Dim=2[128X[104X45[4X[28X [128X[104X46[4X[28X /SimplicialComplex], 3 ][128X[104X47[4X[32X[104X484950[1X15.2 [33X[0;0YEmail notification system[133X[101X5152[33X[0;0Y[5Xsimpcomp[105X comes with an email notification system that can be used for being53notified of the progress of lengthy computations (such as reducing a complex54via bistellar flips). See below for a description of the mail notification55related functions. Note that this might not work on non-Unix systems.[133X5657[33X[0;0YSee [2XSCReduceComplexEx[102X ([14X9.2-14[114X) for an example computation using the email58notification system.[133X5960[1X15.2-1 SCMailClearPending[101X6162[29X[2XSCMailClearPending[102X( ) [32X function63[6XReturns:[106X [33X[0;10Ynothing.[133X6465[33X[0;0YClears a pending mail message.[133X6667[4X[32X Example [32X[104X68[4X[28X gap> SCMailClearPending();[128X[104X69[4X[28X [128X[104X70[4X[28X [128X[104X71[4X[32X[104X7273[1X15.2-2 SCMailIsEnabled[101X7475[29X[2XSCMailIsEnabled[102X( ) [32X function76[6XReturns:[106X [33X[0;10Y[9Xtrue[109X or [9Xfalse[109X upon success, [9Xfail[109X otherwise.[133X7778[33X[0;0YReturns [9Xtrue[109X when the mail notification system of [5Xsimpcomp[105X is enabled, [9Xfalse[109X79otherwise. Default setting is [9Xfalse[109X.[133X8081[4X[32X Example [32X[104X82[4X[28X gap> SCMailSetAddress("johndoe@somehost"); #enables mail notification[128X[104X83[4X[28X true[128X[104X84[4X[28X gap> SCMailIsEnabled();[128X[104X85[4X[28X true[128X[104X86[4X[28X [128X[104X87[4X[32X[104X8889[1X15.2-3 SCMailIsPending[101X9091[29X[2XSCMailIsPending[102X( ) [32X function92[6XReturns:[106X [33X[0;10Y[9Xtrue[109X or [9Xfalse[109X upon success, [9Xfail[109X otherwise.[133X9394[33X[0;0YReturns [9Xtrue[109X when an email of the [5Xsimpcomp[105X email notification system is95pending, [9Xfalse[109X otherwise.[133X9697[4X[32X Example [32X[104X98[4X[28X gap> SCMailIsPending();[128X[104X99[4X[28X false[128X[104X100[4X[28X [128X[104X101[4X[32X[104X102103[1X15.2-4 SCMailSend[101X104105[29X[2XSCMailSend[102X( [3Xmessage[103X[, [3Xstarttime[103X][, [3Xforcesend[103X] ) [32X function106[6XReturns:[106X [33X[0;10Y[9Xtrue[109X when the message was sent, [9Xfalse[109X if it was not send, [9Xfail[109X107upon an error.[133X108109[33X[0;0YTries to send an email to the address specified by [2XSCMailSetAddress[102X ([14X15.2-6[114X)110using the Unix program [10Xmail[110X. The optional parameter [3Xstarttime[103X specifies the111starting time (as the integer Unix timestamp) a calculation was started112(then the duration of the calculation is included in the email), the113optional boolean parameter [3Xforcesend[103X can be used to force the sending of an114email, even if this violates the minimal email sending interval, see115[2XSCMailSetMinInterval[102X ([14X15.2-8[114X).[133X116117[4X[32X Example [32X[104X118[4X[28X gap> SCMailSetAddress("johndoe@somehost"); #enables mail notification[128X[104X119[4X[28X true[128X[104X120[4X[28X gap> SCMailIsEnabled();[128X[104X121[4X[28X true[128X[104X122[4X[28X gap> SCMailSend("Hello, this is simpcomp.");[128X[104X123[4X[28X true[128X[104X124[4X[28X [128X[104X125[4X[32X[104X126127[1X15.2-5 SCMailSendPending[101X128129[29X[2XSCMailSendPending[102X( ) [32X function130[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X131132[33X[0;0YTries to send a pending email of the [5Xsimpcomp[105X email notification system.133Returns [9Xtrue[109X on success or if there was no mail pending.[133X134135[4X[32X Example [32X[104X136[4X[28X gap> SCMailSendPending();[128X[104X137[4X[28X true[128X[104X138[4X[28X [128X[104X139[4X[32X[104X140141[1X15.2-6 SCMailSetAddress[101X142143[29X[2XSCMailSetAddress[102X( [3Xaddress[103X ) [32X function144[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X145146[33X[0;0YSets the email address that should be used to send notification messages and147enables the mail notification system by calling [2XSCMailSetEnabled[102X148([14X15.2-7[114X)([9Xtrue[109X).[133X149150[4X[32X Example [32X[104X151[4X[28X gap> SCMailSetAddress("johndoe@somehost");[128X[104X152[4X[28X true[128X[104X153[4X[28X [128X[104X154[4X[32X[104X155156[1X15.2-7 SCMailSetEnabled[101X157158[29X[2XSCMailSetEnabled[102X( [3Xflag[103X ) [32X function159[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X160161[33X[0;0YEnables or disables the mail notification system of [5Xsimpcomp[105X. By default it162is disabled. Returns [9Xfail[109X if no email message was previously set with163[2XSCMailSetAddress[102X ([14X15.2-6[114X).[133X164165[4X[32X Example [32X[104X166[4X[28X gap> SCMailSetAddress("johndoe@somehost"); #enables mail notification[128X[104X167[4X[28X true[128X[104X168[4X[28X gap> SCMailSetEnabled(false);[128X[104X169[4X[28X true[128X[104X170[4X[28X [128X[104X171[4X[32X[104X172173[1X15.2-8 SCMailSetMinInterval[101X174175[29X[2XSCMailSetMinInterval[102X( [3Xinterval[103X ) [32X function176[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X177178[33X[0;0YSets the minimal time interval in seconds that mail messages can be sent by179[5Xsimpcomp[105X. This prevents a flooding of the specified email address with180messages sent by [5Xsimpcomp[105X. Default is 3600, i.e. one hour.[133X181182[4X[32X Example [32X[104X183[4X[28X gap> SCMailSetMinInterval(7200);[128X[104X184[4X[28X true[128X[104X185[4X[28X [128X[104X186[4X[32X[104X187188189[1X15.3 [33X[0;0YTesting the functionality of [5Xsimpcomp[105X[101X[1X[133X[101X190191[33X[0;0Y[5Xsimpcomp[105X makes use of the [5XGAP[105X internal testing mechanisms and provides the192user with a function to test the functionality of the package.[133X193194[1X15.3-1 SCRunTest[101X195196[29X[2XSCRunTest[102X( ) [32X function197[6XReturns:[106X [33X[0;10Y[9Xtrue[109X upon success, [9Xfail[109X otherwise.[133X198199[33X[0;0YTest whether the package [5Xsimpcomp[105X is functional by calling200[10XTest("GAPROOT/pkg/simpcomp/tst/simpcomp.tst",rec(compareFunction :=201"uptowhitespace"));[110X. The returned value of GAP4stones is a measure of your202system performance and differs from system to system.[133X203204[4X[32X Example [32X[104X205[4X[28X gap> SCRunTest();[128X[104X206[4X[28X simpcomp package test[128X[104X207[4X[28X GAP4stones: 69463[128X[104X208[4X[28X true[128X[104X209[4X[28X [128X[104X210[4X[32X[104X211212[33X[0;0YOn a modern computer, the function [10XSCRunTest[110X should take about a minute to213complete when the packages [5XGRAPE[105X [Soi12] and [5Xhomology[105X [DHSW11] are214available. If these packages are missing, the testing will take slightly215longer.[133X216217218219