type/truefalseFAIL
test for an expression of type truefalseFAIL
type/boolean_constant
test for an expression of type boolean_constant
Calling Sequence
Parameters
Description
Subtypes
Supertypes
Examples
Compatibility
type(e::anything, 'truefalseFAIL')
type(e::anything, 'boolean_constant')
e
-
Maple expression
Maple ordinarily uses a three-valued logic using the Boolean values true, false, and FAIL. The Maple type truefalseFAIL describes this set of values.
The expression type(e,'truefalseFAIL') evaluates to true if, and only if, the expression e is of type truefalseFAIL, which is defined as the expressions true, false, and FAIL. No other expression is of type truefalseFAIL.
The type boolean_constant is a synonym for truefalseFAIL and behaves identically.
Note that every expression that is of type truefalseFAIL is also of type boolean, but that the converse is not true. Expressions of type relation such as x and y where x and y are symbols, are of type boolean but not of truefalseFAIL.
The type truefalse refers to only the two Boolean values true and false and excludes the value FAIL.
type/truefalse
type/boolean, type/symbol
type⁡true,truefalseFAIL
true
type⁡false,truefalseFAIL
type⁡FAIL,truefalseFAIL
type⁡xandy,truefalseFAIL
false
type⁡x≤y,truefalseFAIL
type( proc() true; end proc, 'truefalseFAIL' );
type⁡x2−3,truefalseFAIL
The type/truefalseFAIL and type/boolean_constant commands were introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Boolean
evalb
type
type/boolean
Download Help Document