GAP (Utils) - Chapter 12: Obsolete functions

Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 11 12 13 Bib Ind
[Top of Book] [Contents] [Previous Chapter] [Next Chapter]

[MathJax on]

12 Obsolete functions
12.1 Operations from AutoDoc
12.2 Functions for printing
12.3 Other obsolete functions
12.3-1 Applicable Methods
12.3-2 ExponentOfPrime

### 12 Obsolete functions

#### 12.1 Operations from AutoDoc

The file functions `FindMatchingFiles` and `CreateDirIfMissing` were copied from package AutoDoc where they are named `AutoDoc_FindMatchingFiles` and `AutoDoc_CreateDirIfMissing`.

The string function `StringDotSuffix` was also copied from package AutoDoc, where it is named `AUTODOC_GetSuffix`.

The function `SetIfMissing` was also transferred from package AutoDoc, where it is called `AUTODOC_SetIfMissing`. It writes into a record provided the position is not yet bound.

As from version 0.61, all these functions became obsolete in Utils, but continue to be defined in AutoDoc.

#### 12.2 Functions for printing

The function `PrintOneItemPerLine` was used to prints lists vertically, rather than horizontally. Since a very similar result may be achieved using the GAP library functions `Perform` and `Display`, this function became obsolete in version 0.61.

    gap> s3 := SymmetricGroup( 3 );;
    gap> L := KnownPropertiesOfObject( GeneratorsOfGroup( s3 ) );;
    gap> Perform( L, Display );
    IsFinite
    IsSmallList
    IsGeneratorsOfMagmaWithInverses
    IsAssociative
    IsGeneratorsOfSemigroup
    IsSubsetLocallyFiniteGroup
    gap> Perform( s3, Display );
    ()
    (2,3)
    (1,3)
    (1,3,2)
    (1,2,3)
    (1,2)

#### 12.3 Other obsolete functions

##### 12.3-1 Applicable Methods

The function `PrintApplicableMethod`, which was included in versions from 0.41 to 0.58, has been removed since it was considered superfluous. The example shows how to print out a function.

    gap> ApplicableMethod( IsCyclic, [ Group((1,2,3),(4,5)) ], 1, 1 );
    #I  Searching Method for IsCyclic with 1 argument:
    #I  Total: 8 entries
    #I  Method 5: ``IsCyclic'' at GAPROOT/lib/grp.gi:
    34 , value: 36
    function( G ) ... end
    gap> Print( last );
    function ( G )
        if Length( GeneratorsOfGroup( G ) ) = 1 then
            return true;
        else
            TryNextMethod();
        fi;
        return;
    end
    gap> ApplicableMethod( IsCyclic, [ Group((1,2,3),(4,5)) ], 0, 3 );
    function( obj ) ... end
    gap> Print( last );
    function ( obj )
        <<compiled GAP code>> from GAPROOT/lib/oper1.g:767
    end

##### 12.3-2 ExponentOfPrime

The function `ExponentOfPrime` was originally transferred from package RCWA. The command `ExponentOfPrime(n,p)` returned the exponent of the prime p in the prime factorization of n.

Since the GAP function `PValuation` produces the same results, and does so more quickly, this function has been made obsolete.

[Top of Book] [Contents] [Previous Chapter] [Next Chapter]
Goto Chapter: Top 1 2 3 4 5 6 7 8 9 10 11 12 13 Bib Ind

generated by GAPDoc2HTML