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.
type⁡x⁢y,symmfunc⁡x,y
true
type⁡x&*y,symmfunc⁡x,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
type⁡f,symmfunc⁡a,b,c
Note that any function of a single variable is symmetric in that variable:
type⁡g⁡x,symmfunc⁡x
See Also
type
Download Help Document