Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/twistedconjugacy/lib/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 12.9.2025 mit Größe 1 kB image not shown  

Quelle  cosets.gi   Sprache: unbekannt

 
Spracherkennung für: .gi vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

###############################################################################
##
## DoubleCosetIndex( G, U, V )
##
##  INPUT:
##      G:          group
##      U:          subgroup of G
##      V:          subgroup of G
##
##  OUTPUT:
##      ind:        double coset index of (U,V)
##
BindGlobal(
    "DoubleCosetIndex",
    function( G, U, V )
        if not ( IsSubset( G, U ) and IsSubset( G, V ) ) then
            Error( "not contained" );
        fi;
        return DoubleCosetIndexNC( G, U, V );
    end
);

###############################################################################
##
## DoubleCosetIndexNC( G, U, V )
##
##  INPUT:
##      G:          group
##      U:          subgroup of G
##      V:          subgroup of G
##
##  OUTPUT:
##      ind:        double coset index of (U,V)
##
InstallMethod(
    DoubleCosetIndexNC,
    "for two subgroups",
    [ IsGroup, IsGroup, IsGroup ],
    function( G, U, V )
        local DCS;
        if IsNormal( U, V ) or IsNormal( V, U ) then
            return IndexNC( G, ClosureGroup( U, V ) );
        fi;
        DCS := DoubleCosetsNC( G, U, V );
        if DCS = fail then
            return infinity;
        fi;
        return Length( DCS );
    end
);

[ Dauer der Verarbeitung: 0.32 Sekunden  ]