Power
Output the power to a base of the input
Library
Modelica/Blocks/Math
Description
This blocks computes the output y as the power to the parameter base of the input u. If the boolean parameter useExp is true, the output is determined by:
y = exp ( u * log (base) )
otherwise:
y = base ^ u;
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_base | base | Base of power | Scalar | |
mo_useExp | useExp | Use exp function in implementation | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_u | u | u | Structure | |
mo_u/fixed | fixed | Cell of scalars | true | |
mo_u/start | start | Cell of scalars | ||
mo_y | y | y | Structure | |
mo_y/fixed | fixed | Cell of scalars | true | |
mo_y/start | start | Cell of scalars |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
u | implicit | Connector of Real input signal | input | 1 |
y | implicit | Connector of Real output signal | output | 1 |