Skip to content

Commit

Permalink
Update wrapAngle.mo
Browse files Browse the repository at this point in the history
Bracket typos in function description and documentation.
  • Loading branch information
lvanfretti committed Apr 18, 2022
1 parent 80325f8 commit e048cff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Modelica/Math/wrapAngle.mo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
within Modelica.Math;
function wrapAngle "Wrap angle to interval ]-pi,pi] or [0,2*pi["
function wrapAngle "Wrap angle to interval [-pi,pi] or [0,2*pi]"
extends Modelica.Math.Icons.AxisCenter;
import Modelica.Constants.pi;
input Modelica.Units.SI.Angle u "Input angle";
Expand All @@ -22,8 +22,8 @@ algorithm
Line(points={{-80,54},{-80,54},{-60,80},{-60,-80},{60,80},{60,-80},{80,-52}})}),
Documentation(info="<html>
<p>
This function wraps the input angle <code>u</code> to the interval ]-pi,pi], if <code>positiveRange == false</code>.
Otherwise the input angle <code>u</code> is wrapped to the interval [0,2*pi[.
This function wraps the input angle <code>u</code> to the interval [-pi,pi], if <code>positiveRange == false</code>.
Otherwise the input angle <code>u</code> is wrapped to the interval [0,2*pi].
</p>
</html>"));
end wrapAngle;

0 comments on commit e048cff

Please sign in to comment.