############################################################################# ## #A util.gd GUAVA library Reinald Baart #A &Jasper Cramwinckel #A &Erik Roijackers ## ## This file contains miscellaneous functions ## #H @(#)$Id: util.gd,v 1.4 2003/02/12 03:49:21 gap Exp $ ## Revision.("guava/lib/util_gd") := "@(#)$Id: util.gd,v 1.4 2003/02/12 03:49:21 gap Exp $"; ############################################################################# ## #F SphereContent( , [, ] ) . . . . . . . . . . . contents of ball ## ## SphereContent(n, e [, F]) calculates the contents of a ball of radius e in ## the space (GF(q))^n ## DeclareOperation("SphereContent", [IsInt, IsInt, IsInt]); ############################################################################# ## #F Krawtchouk( , , [, ] ) . . . . . . Krwatchouk number K_k(i) ## ## Krawtchouk(k, i, n [, F]) calculates the Krawtchouk number K_k(i) ## over field of size q (or 2), wordlength n. ## Pre: 0 <= k <= n ## DeclareOperation("Krawtchouk", [IsInt, IsInt, IsInt, IsInt]); ############################################################################# ## #F PermutedCols( ,

) . . . . . . . . . . permutes columns of matrix ## DeclareOperation("PermutedCols", [IsMatrix, IsPerm]); ############################################################################# ## #F ReciprocalPolynomial(

[, ] ) . . . . . . reciprocal of polynomial ## DeclareOperation("ReciprocalPolynomial",[IsUnivariatePolynomial, IsInt]); ############################################################################# ## #F CyclotomicCosets( [, ] ) . . . . cyclotomic cosets of mod ## DeclareOperation("CyclotomicCosets", [IsInt, IsInt]); ############################################################################# ## #F PrimitiveUnityRoot( [, ] ) . . primitive n'th power root of unity ## DeclareOperation("PrimitiveUnityRoot", [IsInt, IsInt]); ############################################################################# ## #F RemoveFiles( ) . . . . . . . . removes all files in ## ## used for functions which use external programs (like Leons stuff) ## DeclareGlobalFunction("RemoveFiles"); ############################################################################# ## #F NullVector( [, ] ) . . vector consisting of coordinates ## DeclareOperation("NullVector", [IsInt]); ############################################################################# ## #F TransposedPolynomial(

, ) . . . . . . . . . tranpose of polynomial ## ## Returns the transpose of polynomial px mod (x^m-1) ## DeclareOperation("TransposedPolynomial", [IsUnivariatePolynomial, IsInt]);