Is it intended that addition and multiplication act differently here?

> A := proc(s)
if type(s,`numeric`) then return true; fi;
return false;
end:

> A(2);

> A(a);

> andmap(A,2*a);andmap(A,2+a);

> whattype(2*a);whattype(2+a);

> op(2*a);op(2+a);

This post was generated using the MaplePrimes File Manager

View 85_andmap.mw on MapleNet or Download 85_andmap.mw
View file details


Please Wait...