Skip to content

Commit c502e92

Browse files
committed
Fixes #120 (finally) by also correcting some additional statements.
Thanks @tbeu for pointing it out.
1 parent 350e98b commit c502e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ModelicaByExample/Functions/Interpolation/InterpolateVector.mo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ protected
88
Integer n = size(ybar,1) "Number of interpolation points";
99
Real p;
1010
algorithm
11-
assert(x>=ybar[1,1], "Independent variable must be greater than "+String(ybar[1,1]));
12-
assert(x<=ybar[n,1], "Independent variable must be less than "+String(ybar[n,1]));
11+
assert(x>=ybar[1,1], "Independent variable must be greater than or equal to "+String(ybar[1,1]));
12+
assert(x<=ybar[n,1], "Independent variable must be less than or equal to "+String(ybar[n,1]));
1313
i := 1;
1414
while x>=ybar[i+1,1] loop
1515
i := i + 1;

0 commit comments

Comments
 (0)