def gf_to_int_poly(f, p, symmetric=True):
 if symmetric:
  return [gf_int(c, p) for c in f]
 else:
  return f

def gf_to_int_poly ( f , p , symmetric = True ) : if symmetric : return [ gf_int ( c , p ) for c in f ] else : return f
convert a gf(p)[x] polynomial to z[x] .