type/set
check for a set
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
type(expr, set)
type(expr, set(K))
expr
-
any expression
K
type name
In the first calling sequence, the type command checks if expr is a valid Maple set. It returns true if expr is a set and false otherwise.
See the set help page for a description of the set datatypes.
In the second calling sequence, where K is a specified type name, the type command checks whether expr is a set whose entries are of type K. That is, type(expr, set(K)) returns true if type(expr, set) is true and type(x, K) is true for each entry x of expr.
See the type help page for a description of valid types in Maple.
type/equationset
type/nonemptyset
type/sequential
S1≔1,2,32
type⁡S1,set
true
type⁡S1,set⁡rational
type⁡S1,set⁡integer
false
S2≔x+3,x4−1,x2
S2≔x2,x+3,x4−1
type⁡S2,set
type⁡S2,set⁡polynom⁡integer,x
See Also
list
set
type
type/list
Download Help Document