DynamicSystems - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

DynamicSystems

  

AlgEquation

  

create an algebraic equation system object

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

AlgEquation(ae, invars, outvars, opts)

Parameters

ae

-

equation or list(equation); algebraic-equations

invars

-

(optional) name, anyfunc(name) or list of same; input variables

outvars

-

(optional) name, anyfunc(name) or list of same; output variables

Options

• 

discrete = truefalse

  

True means the system is discrete, false means the system is continuous. The default value is assigned by DynamicSystems[SystemOptions].

• 

sampletime = realcons

  

The sampling time of a discrete system. The default value is assigned by DynamicSystems[SystemOptions].

• 

systemname = string

  

The name of the system. The default is the empty string.

• 

inputvariable = list of names or functions of time

  

The names of the inputs to the system. A name, say u, is converted to a function u(t), where t is the independent variable of the system, only if the ae equations specified do not contain the independent variable. See DynamicSystems/SystemObject. The default value is assigned by DynamicSystems[SystemOptions].

• 

outputvariable = list of names or functions of time

  

The names of the outputs of the system. A name, say y, is converted to a function y(t), where t is the independent variable of the system, only if the ae equations specified do not contain the independent variable. The default value is assigned by DynamicSystems[SystemOptions].

• 

parameters = list of name=complexcons

  

Specifies values for symbolic parameters. These are used in operations that require numeric evaluation, such as plotting.

Description

• 

The AlgEquation command creates an algebraic-equation (AE) system object, that is, a system whose input/output equations are given by non-differential algebraic equations. It is provided to permit code generation of algebraic-equation blocks. This object cannot be used by many of the commands in the DynamicSystems package.

• 

The ae parameter specifies the equation or equations. It may be a single equation, or a list of equations.

• 

The optional parameters invars and outvars specify the input and output variables of the algebraic equations. They are not required, but if either is not specified then the corresponding keyword parameter inputvariable or outputvariable must be assigned. If both positional and keyword parameters are specified, the keyword parameter take precedence.

• 

The variables of the equations are explicit functions of the time-variable (usually t for a continuous system, q for a discrete system).  Only input or output variables are allowed in the equations.  If invars and/or outvars are specified as names, rather than functions of time, the corresponding names in the equations are converted to functions of time.

Examples

withDynamicSystems:

sys1AlgEquationy=sinx,x,y:

PrintSystemsys1

Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=xtoutputvariable=ytae=yt=sinxt

(1)

sys2AlgEquationy=sinx,x,y,discrete=true,sampletime=0.01:

PrintSystemsys2

Algebraic Equationdiscrete; sampletime = .1e-11 output(s); 1 input(s)inputvariable=xqoutputvariable=yqae=yq=sinxq

(2)

ListEqnx1t=rtcosθt,y1t=rtsinθt:

InputVarrt,θt:

OutputVarx1t,y1t:

sys3AlgEquationListEqn,InputVar,OutputVar:

PrintSystemsys3

Algebraic Equationcontinuous2 output(s); 2 input(s)inputvariable=rt,θtoutputvariable=x1t,y1tae=x1t=rtcosθt,y1t=rtsinθt

(3)

ListEqnx1q=rqcosθq,y1q=rqsinθq:

InputVarrq,θq:

OutputVarx1q,y1q:

sys4AlgEquationListEqn,InputVar,OutputVar,discrete=true,sampletime=0.01:

PrintSystemsys4

Algebraic Equationdiscrete; sampletime = .1e-12 output(s); 2 input(s)inputvariable=rq,θqoutputvariable=x1q,y1qae=x1q=rqcosθq,y1q=rqsinθq

(4)

Compatibility

• 

The DynamicSystems[AlgEquation] command was updated in Maple 18.

• 

The parameters option was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

DynamicSystems

DynamicSystems[SystemObject]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam