Question: Why does this procedure call fail??

Hi: The follwoing snip contains two identical procedures. The first call fails, the second call works. Why?? restart; test1:=proc(a,b,c); with(combinat,permute); perm1:=permute([a,b,c],3); end proc; Warning, `perm1` is implicitly declared local to procedure `test1` test1 := proc(a, b, c) ... end; test1(a,b,c); permute([a, b, c], 3) test2:=proc(a,b,c); with(combinat,permute); perm2:=permute([a,b,c],3); end proc; Warning, `perm2` is implicitly declared local to procedure `test2` test2 := proc(a, b, c) ... end; test2(a,b,c); [[a, b, c], [a, c, b], [b, a, c], [b, c, a], [c, a, b], [c, b, a]]
Please Wait...