# how to make an Macaulay matrix from polynoms over GF(2)

I have a `PolynomialRing(GF(2),'x1,x2,x3')`

and over it two polynomials `x1*x2 + x1*x3 + x1`

, `x1+x2+1`

and I would like to rewrite it in Macaulay matrix in order `x1x1`

, `x1x2`

, `x2x2`

, `x1x3`

, `x2x3`

, `x3x3`

,`x1`

,`x2`

,`x3`

, absolute term
so it should be

```
0 1 0 1 0 0 1 0 0 0
0 0 0 0 0 0 1 1 0 1
```

Is there something in sage ?

It seems that the only related function is

`R.macaulay_resultant(...)`

if`R`

is your polynomial ring, that takes a list of $n$ homogeneous polynomials (if $n$ is the number of variable) and computes their Macaulay resultant. You can inspect the code (using for instance`R.macaulay_resultant??`

) and copy the parts that are useful for your needs.