evalapply
user definable control over function application
Calling Sequence
Parameters
Description
Examples
`evalapply/V`(f, t))
f
-
function call
t
list of arguments
When nontrivial Maple objects such as unevaluated function calls, lists, or sets are applied to arguments as if they were functions, the evalapply command determines the outcome. For example, an object of type function can be applied to arguments, as in V(f, g)(a, b, c).
The effect of applying the result of most built-in constructors to a sequence of arguments is determined by an internal evalapply function. The evalapply command also implements the application semantics for compositions and compositional powers.
The effect of applying a function call to arguments can be specified by defining an optional procedure of the name `evalapply/V`, where V is the name of the function.
When present, the procedure of the name `evalapply/V` is automatically invoked with f set to V(f, g), and t set to [a, b, c] in response to the function invocation V(f, g)(a, b, c).
V⁡f,g⁡a,b,c
`evalapply/V` := proc(f,t) local i; V(seq(op(i,f)(op(t)),i=1..nops(f))); end proc:
V⁡f⁡a,b,c,g⁡a,b,c
a,b⁡x,y
a⁡x,y,b⁡x,y
a=b⁡x,y
a⁡x,y=b⁡x,y
a+b⁡x,y
a⁡x,y+b⁡x,y
a−b⁡x,y
a⁡x,y−b⁡x,y
a⁢b⁡x,y
a⁡x,y⁢b⁡x,y
ab⁡x,y
a⁡x,yb⁡x,y
a·b⁡x,y
a⁡x,y·b⁡x,y
a..b⁡x,y
a⁡x,y..b⁡x,y
aandb⁡x,y
a⁡x,yandb⁡x,y
aorb⁡x,y
a⁡x,yorb⁡x,y
axorb⁡x,y
a⁡x,yxorb⁡x,y
a⇒b⁡x,y
a⁡x,y⇒b⁡x,y
nota⁡x,y
a@b⁡x,y
a⁡b⁡x,y
an⁡a⁡x,y
an+1⁡x,y
combinatchoose⁡4,3
1,2,3,1,2,4,1,3,4,2,3,4
map⁡op,combinatchoose⁡4,3
See Also
apply
eval
type/appliable
type/function
Download Help Document