anything - Maple Help

type/anything

check for any type

 Calling Sequence type(expr, anything)

Parameters

 expr - any expression

Description

 • type(x,anything) returns true when x is any valid Maple expression, except an expression sequence.
 • Expression sequences return an error, because each element would be interpreted as a separate argument to type.
 • This type often appears as a component of a structured type expression.

Examples

 > $\mathrm{type}\left({5}^{\frac{1}{2}},\mathrm{anything}\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\frac{\mathrm{sin}\left(3x\right)}{\mathrm{\pi }},\mathrm{anything}\right)$
 ${\mathrm{true}}$ (2)