DynamicSystems
AlgEquation
create an algebraic equation system object
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
AlgEquation(ae, invars, outvars, opts)
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
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.
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.
with⁡DynamicSystems:
sys1≔AlgEquation⁡y=sin⁡x,x,y:
PrintSystem⁡sys1
Algebraic Equationcontinuous1 output(s); 1 input(s)inputvariable=x⁡toutputvariable=y⁡tae=y⁡t=sin⁡x⁡t
sys2≔AlgEquation⁡y=sin⁡x,x,y,discrete=true,sampletime=0.01:
PrintSystem⁡sys2
Algebraic Equationdiscrete; sampletime = .1e-11 output(s); 1 input(s)inputvariable=x⁡qoutputvariable=y⁡qae=y⁡q=sin⁡x⁡q
ListEqn≔x1⁡t=r⁡t⁢cos⁡θ⁡t,y1⁡t=r⁡t⁢sin⁡θ⁡t:
InputVar≔r⁡t,θ⁡t:
OutputVar≔x1⁡t,y1⁡t:
sys3≔AlgEquation⁡ListEqn,InputVar,OutputVar:
PrintSystem⁡sys3
Algebraic Equationcontinuous2 output(s); 2 input(s)inputvariable=r⁡t,θ⁡toutputvariable=x1⁡t,y1⁡tae=x1⁡t=r⁡t⁢cos⁡θ⁡t,y1⁡t=r⁡t⁢sin⁡θ⁡t
ListEqn≔x1⁡q=r⁡q⁢cos⁡θ⁡q,y1⁡q=r⁡q⁢sin⁡θ⁡q:
InputVar≔r⁡q,θ⁡q:
OutputVar≔x1⁡q,y1⁡q:
sys4≔AlgEquation⁡ListEqn,InputVar,OutputVar,discrete=true,sampletime=0.01:
PrintSystem⁡sys4
Algebraic Equationdiscrete; sampletime = .1e-12 output(s); 2 input(s)inputvariable=r⁡q,θ⁡qoutputvariable=x1⁡q,y1⁡qae=x1⁡q=r⁡q⁢cos⁡θ⁡q,y1⁡q=r⁡q⁢sin⁡θ⁡q
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[SystemObject]
Download Help Document