Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Force positive representation in GF

I work with arbitrary finite field GF(q), for q power of prime. I've been looking around for some function, which would force, that any element is printed as a positive natural number. i.e. in GF(5), -2 is printed as 3 etc. Is that possible in an easy way? I need to achieve that for arbitraty q. I've been thinking about writing some own function, but it seems intractable for me at the moment.