Do you know how to convert a sum of terms in a vector in Julia?
For instance, If we have a polynomial p(x,y)=1 +x+y+xy+x^2+y^2+xy^4, the array v associated to p(x,y) would be the following:
v=[1,x,y,xy,x^2,y^2,xy^4]
Other example: If you have the following expression: a+b+c+abc+ac, the array v associated to this expression would be the following:
v=[a,b,c,abc,ac]