GAP (Utils) - Chapter 10: Obsolete functions

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

[MathJax off]

10 Obsolete functions
10.1 Operations from AutoDoc
10.2 Functions for printing
10.3 Other obsolete functions
10.3-1 Applicable Methods
10.3-2 ExponentOfPrime

### 10 Obsolete functions

#### 10.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.

#### 10.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
    IsGeneratorsOfSemigroup
    IsSubsetLocallyFiniteGroup
    gap> Perform( s3, Display );
    ()
    (2,3)
    (1,3)
    (1,3,2)
    (1,2,3)
    (1,2)

#### 10.3 Other obsolete functions

##### 10.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 arguments:
    #I  Total: 7 entries
    #I  Method 4: ``IsCyclic'' at /Applications/gap/gap4r9/lib/grp.gi:30 , 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( <1 unnamed arguments> ) ... end
    gap> Print( last );
    function ( <<arg-1>> )
        <<compiled GAP code from GAPROOT/lib/oper1.g:578>>
    end

##### 10.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 Bib Ind

generated by GAPDoc2HTML