 truefalse - Maple Help

type/truefalse

test for an expression of type truefalse Calling Sequence type(e::anything, 'truefalse') Parameters

 e - Maple expression of type anything Description

 • The type truefalse refers to only the two Boolean values true and false.
 • The expression type(e,'truefalse') evaluates to true if, and only if, the expression e is of type truefalse. The only two expressions that are of type truefalse are the expressions true and false. No other expression is of type truefalse.
 • Maple ordinarily uses a three-valued logic using the Boolean values true, false, and FAIL. The Maple type truefalseFAIL describes this set of values.
 • Note that every expression that is of type truefalse is also of type boolean, but that the converse is not true. The value FAIL is not of type truefalse. Supertypes Examples

 > $\mathrm{type}\left(\mathrm{true},'\mathrm{truefalse}'\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathrm{false},'\mathrm{truefalse}'\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(\mathrm{FAIL},'\mathrm{truefalse}'\right)$
 ${\mathrm{false}}$ (3)
 > type( proc() true; end proc, 'truefalse' );
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left({x}^{2}-3,'\mathrm{truefalse}'\right)$
 ${\mathrm{false}}$ (5)