Skip to content

Commit 1be54b5

Browse files
committed
AdditionalSqrt
1 parent 54f4a7a commit 1be54b5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modelica/ComplexBlocks/ComplexMath/ComplexToPolar.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ block ComplexToPolar "Converts complex to polar representation"
1212
parameter Boolean useConjugateInput=false
1313
"If true, input is processed conjugate complex";
1414
equation
15-
len = (u.re^2 + u.im^2)^0.5;
15+
len = sqrt(u.re^2 + u.im^2);
1616
phi = (if useConjugateInput then Modelica.Math.atan2(-u.im, u.re) else
1717
Modelica.Math.atan2(u.im, u.re));
1818

Modelica/Media/Water/IF97_Utilities.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ email: hubertus@modelon.se
229229
"IF97 medium function boundary23ofp called with too low pressure\n"
230230
+ "p = " + String(p) + " Pa <= " + String(triple.ptriple) +
231231
" Pa (triple point pressure)");
232-
t := n[4] + ((pi - n[5])/n[3])^0.5;
232+
t := n[4] + sqrt((pi - n[5])/n[3]);
233233
end boundary23ofp;
234234

235235
function hlowerofp5

0 commit comments

Comments
 (0)