From 7cd0a8fb0c45e4cc409cb39446cf6cc5857cb9d8 Mon Sep 17 00:00:00 2001 From: Christian Kral Date: Fri, 10 Jun 2022 22:16:31 +0200 Subject: [PATCH] Keep original implementation Add link to Wikipedia --- Modelica/Blocks/Math.mo | 2 +- Modelica/Math/wrapAngle.mo | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Modelica/Blocks/Math.mo b/Modelica/Blocks/Math.mo index 0755db73b8..c4c56aec71 100644 --- a/Modelica/Blocks/Math.mo +++ b/Modelica/Blocks/Math.mo @@ -3230,4 +3230,4 @@ connected with continuous blocks or with sampled-data blocks. 57.5,-63.9},{63.9,-49.2},{72,-26.8},{80,-2}}, color={95,95,95}, smooth=Smooth.Bezier)})); -end Math; +end Math; \ No newline at end of file diff --git a/Modelica/Math/wrapAngle.mo b/Modelica/Math/wrapAngle.mo index 6c7db7fc41..bc1ad7fbd3 100644 --- a/Modelica/Math/wrapAngle.mo +++ b/Modelica/Math/wrapAngle.mo @@ -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"; @@ -20,10 +20,7 @@ algorithm fillColor={192,192,192}, fillPattern=FillPattern.Solid), Line(points={{-80,54},{-80,54},{-60,80},{-60,-80},{60,80},{60,-80},{80,-52}})}), - Documentation(info=" -

-This function wraps the input angle u to the interval [-pi,pi], if positiveRange == false. -Otherwise the input angle u is wrapped to the interval [0,2*pi]. -

-")); -end wrapAngle; + Documentation(info= "

+This function wraps the input angle u to the interval ]-pi,pi], if positiveRange == false. +Otherwise the input angle u is wrapped to the interval [0,2*pi[.

")); +end wrapAngle; \ No newline at end of file