Character( repres )
returns the character of the group representation repres.
Character( G, values )
returns the character of the group G with values list values.
Character( G, chi )
returns the character of G corresponding to the character chi with source H. The group H can be a factor group of G, or G can be a subgroup or factor group of H.
gap> syl2:= SylowSubgroup( S4, 2 );;
gap> Character( syl2, irr[3] );
Character( D8, [ 2, 2, 2, 0, 0 ] )
gap> S3:= S4 / V4;
Group( a, b )
gap> Character( S3, irr[3] );
Character( Group( a, b ), [ 2, -1, 0 ] )
gap> reg:= Character( S4, [ 24, 0, 0, 0, 0 ] );
Character( S4, [ 24, 0, 0, 0, 0 ] )
Note that it is not checked whether the result is really a character.
GAP 3.4.4