diff --git a/src/lab/exp1/simulation/index.html b/src/lab/exp1/simulation/index.html
index d6ceab13..5187d44a 100644
--- a/src/lab/exp1/simulation/index.html
+++ b/src/lab/exp1/simulation/index.html
@@ -4,7 +4,7 @@
-
+
@@ -48,7 +48,7 @@
double sum;
scanf("%d%d", &a, &b );
sum = 0; width = 1; i = 0;
- for ( i = a; b >= i; i += width){
+ for ( i = a; b > i; i += width){
sum = sum + cos(2*Pi/13*i) * width;
}
printf("Integration value = %d", sum);
@@ -56,7 +56,7 @@
-
+
diff --git a/src/lab/exp1/simulation/numericalApproximation.js b/src/lab/exp1/simulation/numericalApproximation.js
index 5ca76384..f2b1f3e4 100644
--- a/src/lab/exp1/simulation/numericalApproximation.js
+++ b/src/lab/exp1/simulation/numericalApproximation.js
@@ -245,7 +245,7 @@ window.view = {
model.incrementInWidth();
this.sum = Math.round(model.sum * 100) / 100;
this.setInnerHtml('valuesum', this.sum);
- this.setInnerHtml('valuei', model.inputValueA);
+ this.setInnerHtml('valuei', model.inputValueA-1);
},
// calculateXCoordinates: compute starting position of xCoordinatesValue on x-axis.
calculateXCoordinates: function () {