Question: GF input() accepts out-of-range input

I think the GF function, input, accepts out-of-range inputs.

From ?GF: The G:-input and G:-output commands convert from an integer in the range 
  "0 .. p^k - 1" to the corresponding polynomial and back

GF_strange.mw

The first GF was from a typo. I think it should have produced an error message, according to help.
If I understand correctly, GF(7,1) should only have 7 members.
The second GF is to allow the input 28856.

Tom Dean

Please Wait...