This sub-package contains the math operations for integer numbers.
Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
![]() | Sum of two integer numbers |
![]() | Difference of two integer numbers |
![]() | Integer division of two integer numbers |
![]() | Modulus of Integer division of two integer numbers |
![]() | Product of two integer numbers |
![]() | Power of two integer numbers |
![]() | User defined function integer function |
![]() | Functions |
![]() | Interfaces |
Model of a sum of two integers.
The output ( y ) is the sum of the inputs ( u1, u2 ) signals.
y = u1 + u2
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntSimpleOperation (Partial interface of a generic two input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
Name | Description |
---|---|
u1 | input |
u2 | input |
y | output |
Model of a difference of two integers.
The output ( y ) is the difference of the inputs ( u1, u2 ) signals.
y = u1 - u2
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntSimpleOperation (Partial interface of a generic two input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
Name | Description |
---|---|
u1 | input |
u2 | input |
y | output |
Model of the integer division difference of two integers.
The output ( y ) is the integer division of the inputs ( u1, u2 ) signals.
y = div(u1,u2)
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntSimpleOperation (Partial interface of a generic two input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
Name | Description |
---|---|
u1 | input |
u2 | input |
y | output |
Model of the modulus of integer division difference of two integers.
The output ( y ) is the modulus of the integer division of the inputs ( u1, u2 ) signals.
y = mod(u1,u2)
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntSimpleOperation (Partial interface of a generic two input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
Name | Description |
---|---|
u1 | input |
u2 | input |
y | output |
Model of the product of two integers.
The output ( y ) is the product of the inputs ( u1, u2 ) signals.
y = u1*u2
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntSimpleOperation (Partial interface of a generic two input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
Name | Description |
---|---|
u1 | input |
u2 | input |
y | output |
Model of the power of two integers.
The output ( y ) is the input ( u1 ) to the power of the second
input ( u2 ) signals.
y = u1 ^ u2
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntSimpleOperation (Partial interface of a generic two input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
Name | Description |
---|---|
u1 | input |
u2 | input |
y | output |
Model of a generic function of n integers.
The output ( y ) is the result of the generic function f(.) of the
inputs ( u(:) ) signals.
y = f(u[:])
Depending on the value of the sampling time (Ts), the model has two different behaviours:
Ts > 0it behaves as a discrete time system,
Ts <= 0it behaves as a continous time system. No delay is introduced and events are generated when the output changes (this mode reduces the simulation time)
Extends from IndustrialControlSystems.MathOperations.IntegerType.Interfaces.IntNinOperation (Partial interface of a generic n-input integer math operation).
Name | Description |
---|---|
Ts | sampling time |
nInput | number of inputs |
fname | String that represent the name of the implemented function |
Name | Description |
---|---|
u[nInput] | input vector |
y | output |