type/And, type/Or, type/Not, type/Non
boolean combinations of types
Calling Sequence
Parameters
Description
Examples
type(expr, And(type1, type2, ...))
type(expr, Or(type1, type2, ...))
type(expr, Not(type1))
type(expr, Non(type1))
expr
-
expression
type1, type2, ...
type
An expression is of type And(type1, type2, ...) if it is all of the types type1, type2, ... .
An expression is of type Or(type1, type2, ...) if it is one of the types type1, type2, ... . Note the Or(type1, type2, ...) is equivalent to {type1,type2,...} but the type checks always occur in order. This may be useful if it is known that one type check is faster than a second, or if the later type check doesn't make sense (or leads to an error) when the earlier one is satisfied.
An expression is of type Not(type1) if it is not of type type1. Non(type1) is equivalent to Not(type1).
type⁡2.0,And⁡embedded_real,Not⁡numeric
false
type⁡2.0+0.⁢I,And⁡embedded_real,Not⁡numeric
true
type⁡3,Or⁡name,realcons
See Also
boolean
Download Help Document