Skip to content

GAP usage/function FAQ #4592

Answered by fingolfin
Jeffreyke asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!

First, a meta remark: I took the liberty of editing your post a bit, it was very difficult to read due to your user of ===== as separators, which causes text to render in BIG BOLD LETTERS -- I've replaced those by triple backticks, which exist to render code, and the result looks better.

Regarding your first question: To get Z/nZ, just write Integers mod n. For primes, though, GAP will by default return the finite field GF(p):

gap> Integers mod 17;
GF(17)
gap> Integers mod 17^2;
(Integers mod 289)

Regarding your second question: the variable x does not really store the coefficient domain. You need to pass the polynomial ring in which you want to factor to the Factors function (…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hulpke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants