type/tabular - Maple Programming Help

Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/tabular

type/tabular

check for a tabular object

 Calling Sequence type(expr, tabular) type(expr, 'tabular'(R))

Parameters

 expr - any expression R - datatype of elements

Description

 • The type(expr, tabular) function returns true if expr is any one of the following types of Maple objects.

 • The type(expr, 'tabular'(R)) function returns true if expr is a tabular Maple object with elements of type R.

Examples

 > $A≔\mathrm{rtable}\left(\left[\left[1,2,3\right],\left[1,1,1\right],\left[5,7,9\right]\right],\mathrm{subtype}=\mathrm{Matrix},\mathrm{datatype}=\mathrm{integer}[2]\right)$
 ${A}{≔}\left[\begin{array}{rrr}{1}& {2}& {3}\\ {1}& {1}& {1}\\ {5}& {7}& {9}\end{array}\right]$ (1)
 > $\mathrm{type}\left(A,\mathrm{tabular}\right)$
 ${\mathrm{true}}$ (2)
 > $\mathrm{type}\left(A,'\mathrm{tabular}'\left(\mathrm{integer}[2]\right)\right)$
 ${\mathrm{true}}$ (3)