User Guide
Selecting Expression Operands
The select, remove, and selectremove commands apply a boolean-valued
procedure or command to the operands of an expression. For information
on operands, refer to the ?op help page.
• The select command returns the operands for which the procedure or
command returns true.
• The remove command returns the operands for which the procedure or
command returns false.
• The selectremove command returns two expressions of the same type
as the input expression.
- The first consists of the operands for which the procedure or command re-
turns true.
- The second consists of the operands for which the procedure or command
returns false or FAIL.
See Table 8.5.
For information on Maple procedures, see Procedures (page 338).
Table 8.5: The select, remove, and selectremove Commands
ExamplesCalling Sequence Syntax
> select(issqr, {198331, 889249,
11751184, 9857934});
select(proc_cmd, expression);
> remove(var -> degree(var) > 3,
2*x^3*y - y^3*x + z );
remove(proc_cmd, expression);
8.3 Iterative Commands • 335