From 9a30959e9509dad8a3b0a461b600e44e2179743c Mon Sep 17 00:00:00 2001 From: bmkgupta Date: Sat, 20 Apr 2019 20:11:53 +0530 Subject: [PATCH 1/2] simulation is changed --- src/lab/exp1/simulation/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 @@ -
+
Graph Visualization
From 495792c126e14087cb760f41ad532e2b163ac512 Mon Sep 17 00:00:00 2001 From: bmkgupta Date: Sat, 20 Apr 2019 20:19:14 +0530 Subject: [PATCH 2/2] simulation is changed --- src/lab/exp1/simulation/numericalApproximation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () {