I'm having trouble with the following code:
Do[
P[x_, y_] := Sum[RandomChoice[{-1, 1}]*x^k*y^l, {k, 0, 3}, {l, 0, 3}],
IrreduciblePolynomialQ[P[x, y]],
{12}]
Basically, I just want to generate multiple polynomials (in the above case 12) of the form
P[x_, y_] := Sum[RandomChoice[{-1, 1}]*x^k*y^l, {k, 0, 3}, {l, 0, 3}]
and have a list of whether these polynomials are irreducible. I don't actually need to see the equation of each individual polynomial, I just need a list of true, false so I can estimate some probabilities of irreducibility. Any help with this endeavor is immensely appreciated.
IrreduciblePolynomialQ[Sum[(* stuff *)]]works fine. You might want to useTable[]instead ofDo[], tho. – J. M.'s missing motivation Jun 15 '16 at 18:43