Question: test

Question:test

This question is related to the Question Unexpected behavior of "remove"

I guys,

I wrote this little function :

 

test:=proc(a,x) 
if has(a,x) then 
    if type(a,`*`) then
        S,R:=selectremove(has,a,x);
    else        R:=1; S:=a;
    end if;
else
R:=a; S:=1;
end if;
return [S,R];
end proc;

could you confirm that it should catch every possible form for a monomial containing or not x?

Thks

Salvo

Please Wait...