From 37319140c9b0804e6291da97aa8f8ff53e024485 Mon Sep 17 00:00:00 2001 From: Matt Stinson <11094799+mestinso@users.noreply.github.com> Date: Tue, 13 Jun 2023 15:09:20 -0500 Subject: [PATCH 1/2] Added units to mathematical constants --- Modelica/Constants.mo | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Modelica/Constants.mo b/Modelica/Constants.mo index ea4de7c624..a891497bc9 100644 --- a/Modelica/Constants.mo +++ b/Modelica/Constants.mo @@ -7,11 +7,11 @@ package Constants import Modelica.Units.NonSI; // Mathematical constants - final constant Real e=Modelica.Math.exp(1.0); - final constant Real pi=2*Modelica.Math.asin(1.0); // 3.14159265358979; - final constant Real D2R=pi/180 "Degree to Radian"; - final constant Real R2D=180/pi "Radian to Degree"; - final constant Real gamma=0.57721566490153286061 + final constant Real e(final unit="1") = Modelica.Math.exp(1.0); + final constant Real pi(final unit="1") = 2*Modelica.Math.asin(1.0); // 3.14159265358979; + final constant Real D2R(final unit="rad/deg") = pi/180 "Degree to Radian"; + final constant Real R2D(final unit="deg/rad") = 180/pi "Radian to Degree"; + final constant Real gamma(final unit="1") = 0.57721566490153286061 "See http://en.wikipedia.org/wiki/Euler_constant"; // Machine dependent constants From 8ad4208f79baf020209b9451d15f88a3978a0fde Mon Sep 17 00:00:00 2001 From: Matt Stinson <11094799+mestinso@users.noreply.github.com> Date: Wed, 21 Jun 2023 07:59:20 -0500 Subject: [PATCH 2/2] Trigger build