Function: vnapply - Make a function from an expression and arguments (replacement for unapply)
Calling Sequence:
vnapply(expr, vars);
Parameters:
expr - any expression
vars - one or more variables (may be any non-constant expressions)
Description:
Examples:
>
f1:= unapply(diff(g(x,y),x,y),x,y);
f2:= vnapply(diff(g(x,y),x,y),x,y);
> f1(3,4); f2(3,4);
Error, (in f1) wrong number (or type) of parameters in function diff
>
V:= vector([x,x^2]): f1:= unapply(V,x);
f2:= vnapply(V,x);
> f1(u),f2(u);
>
V:= Matrix([[a,b],[a+1,c]]); f1:= unapply(V,(a,b));
f2:= vnapply(V,(a,b));
> f1(q,r), f2(q,r);
> unapply(x+g(z),g(z));
Error, (in unapply) variables must be unique and of type name
> vnapply(x+g(z),g(z));
See also: Problems with unapply , subs , unapply
Maple Advisor Database R. Israel, 1998