type
logical
Calling Sequence
Parameters
Description
Supertypes
Examples
type(expr, logical)
expr
-
any expression
These functions return true if expr is of the specified type, and false otherwise.
An expression is of type logical if it is of type `and`, `or`, `xor`, `implies`, or `not`. For each of the types f, where f is one of `and`, `or`, `xor`, `implies`, or `not`, x is of type f if op(0, x) = f.
type/boolean
type⁡x<5,logical
false
type⁡aornotb,logical
true
type⁡1<2and5<x,logical
See Also
evalb
type/relation
type/truefalse
Download Help Document