Ask Your Question
1

how to display the list of all monomials occurring in a polynomial

asked 2024-07-01 00:12:44 +0100

hamouda gravatar image

updated 2024-07-01 15:56:13 +0100

Max Alekseyev gravatar image

let $f=x+y+z+xy$, how to display the list of all monomials occuring in $f^2$, by hand computing, the list should be $[x^2y^2;x^2y;xy^2;xyz;x^2;xy ;y^2;xz;yz ;z^2]$

R.<x,y,z>=ZZ[]
f=x+y+z+x*y;f^2
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2024-07-01 03:46:46 +0100

(f^2).monomials() works. If you do g=f^2 and then type g.<TAB>, you will get a list of methods attached to g, one of which is monomials. Others may also be of interest.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2024-07-01 00:12:44 +0100

Seen: 497 times

Last updated: Jul 01