Skip to content

Commit 522040e

Browse files
committed
ST6RI-64 Renamed RealFunctions::sqrt to Sqrt.
1 parent a9407a4 commit 522040e

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

sysml.library/Kernel Library/RealFunctions.kerml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ package RealFunctions {
1919

2020
function '='(x: Real, y: Real): Boolean specializes BaseFunctions::'==';
2121
function '!='(x: Real, y: Real): Boolean specializes BaseFunctions::'!=';
22-
22+
23+
function Sqrt(x: Real): Real;
24+
2325
function Floor(x: Real): Integer;
2426
function Round(x: Real): Integer;
2527

@@ -35,6 +37,4 @@ package RealFunctions {
3537
function product(collection: Real[0..*]): Real {
3638
ScalarFunctions::product(collection, 1.0)
3739
}
38-
39-
function sqrt(x: Real): Real;
4040
}

sysml/src/validation/15-Properties-Values-Expressions/15_12-Compound Value Type.sysml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package '15_12-Compound Value Type' {
22
import ISQ::*;
3-
import RealFunctions::sqrt;
3+
import RealFunctions::Sqrt;
44
import '15_01-Constants'::'Mathematical Constants'::pi;
55

66
value type CartesianLocation3D {
@@ -17,7 +17,7 @@ package '15_12-Compound Value Type' {
1717
value dirY: DirectionValue;
1818
value dirZ: DirectionValue;
1919

20-
assert constraint { sqrt(dirX**2 + dirY**2 + dirZ**2) == 1.0 }
20+
assert constraint { Sqrt(dirX**2 + dirY**2 + dirZ**2) == 1.0 }
2121
}
2222

2323
/*

0 commit comments

Comments
 (0)