DynamicSystems - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Dynamic Systems : System Object : DynamicSystems/SystemType

DynamicSystems

 SystemType
 check system type

 Calling Sequence type(sys, System) type(sys, System(x_1, x_2, ...))

Parameters

 sys - system object to check x_i - (optional) name; one of tf, zpk, coeff, ss, de, ae, continuous, discrete

Description

 • The command type(sys, System) returns true if the parameter sys is of type System, false otherwise.
 • The command type(sys, System(x_1,..., x_n)) returns true if the parameter sys is of  type System and has properties x_1 to x_n.
 • If parameter x_i is a set of properties then sys has property x_i if it has any of the properties in the set.  An empty set is always false.
 • The following properties can be used in the parameter x_i:

tf - true if sys is a transfer function representation

zpk - true if sys is a zero-pole-gain representation

coeff - true if sys is a coefficients representation

ss - true if sys is a state-space representation

de - true if sys is a diff-equation representation

ae - true if sys is a algebraic equation representation

continuous - true if sys is a continuous system

discrete - true if sys is a discrete system

Examples

 > $\mathrm{with}\left(\mathrm{DynamicSystems}\right):$
 > $\mathrm{sys}≔\mathrm{NewSystem}\left(\frac{3\mathrm{π}}{{s}^{2}}\right):$
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{ae}'\right)\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{tf}'\right)\right)$
 ${\mathrm{true}}$ (3)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{ss}'\right)\right)$
 ${\mathrm{false}}$ (4)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{tf}','\mathrm{ss}','\mathrm{coeff}'\right)\right)$
 ${\mathrm{false}}$ (5)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left(\left\{'\mathrm{tf}','\mathrm{ss}','\mathrm{coeff}'\right\}\right)\right)$
 ${\mathrm{true}}$ (6)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{continuous}'\right)\right)$
 ${\mathrm{true}}$ (7)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{discrete}'\right)\right)$
 ${\mathrm{false}}$ (8)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{tf}','\mathrm{continuous}'\right)\right)$
 ${\mathrm{true}}$ (9)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left('\mathrm{tf}','\mathrm{discrete}'\right)\right)$
 ${\mathrm{false}}$ (10)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left(\left\{'\mathrm{tf}','\mathrm{ss}','\mathrm{coeff}'\right\},'\mathrm{continuous}'\right)\right)$
 ${\mathrm{true}}$ (11)
 > $\mathrm{type}\left(\mathrm{sys},'\mathrm{System}'\left(\left\{\right\}\right)\right)$
 ${\mathrm{false}}$ (12)