type/symmfunc
check for a symmetric function
Calling Sequence
Parameters
Description
Examples
type(f, symmfunc(x, y, ...))
f
-
function
x, y, ...
name(s)
This procedure tests the symmetry of the function f with respect to the argument(s) x,y,....
It returns true if f is symmetric in all of the given variables, and false otherwise.
typexy,symmfuncx,y
true
typex&*y,symmfuncx,y
false
f≔`&*`a,b,c+`&*`b,c,a+`&*`c,a,b+`&*`b,a,c+`&*`a,c,b+`&*`c,b,a
f≔&*a,b,c+&*b,c,a+&*c,a,b+&*b,a,c+&*a,c,b+&*c,b,a
typef,symmfunca,b,c
Note that any function of a single variable is symmetric in that variable:
typegx,symmfuncx
See Also
type
Download Help Document