Skip to content

Commit

Permalink
Improved documentation; added Evaluate=true to parameter base, see #2221
Browse files Browse the repository at this point in the history
  • Loading branch information
christiankral committed Mar 29, 2017
1 parent f48b3b7 commit 391b3e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modelica/Blocks/Math.mo
Expand Up @@ -2338,7 +2338,7 @@ This blocks computes the output <b>y</b> as the

block Power "Output the power to a base of the input"
extends Interfaces.SISO;
parameter Real base = Modelica.Constants.e "Base of power";
parameter Real base = Modelica.Constants.e "Base of power" annotation(Evaluate=true);
equation
y = base ^ u;
annotation (
Expand Down Expand Up @@ -2394,7 +2394,7 @@ This blocks computes the output <b>y</b> as the
power to the parameter <i>base</i> of the input <b>u</b>:
</p>
<pre>
y = <b>base </b> ^ ( u );
y = <b>base </b> ^ u;
</pre>
Expand All @@ -2405,7 +2405,7 @@ power to the parameter <i>base</i> of the input <b>u</b>:
"Output the natural (base e) logarithm of the input (input > 0 required)"

extends Interfaces.SISO;
parameter Real base = Modelica.Constants.e "Base of logarithm";
parameter Real base = Modelica.Constants.e "Base of logarithm" annotation(Evaluate=true);

equation
y = Modelica.Math.log(u)/Modelica.Math.log(base);
Expand Down

0 comments on commit 391b3e7

Please sign in to comment.