Question: how to get a list of terms of expression such as x+z^2;

it is not a maple question, but i need it before running in maple

could you give a help?

how to get a list of terms of expression such as x+z^2 in gap system?

how to convert to a list [x, z^2] for for loop to get each terms?

x+2*y+z^2

expected output for for loop

for i in List(x+2*y+z^2) do
    print(i)

x
2*y
z^2
Please Wait...