virtual-labs-archive / computer-programming-responsive-iiith

This repository contains the responsive Computer Programming Lab IIITH
https://cse02-iiith.vlabs.ac.in
Other
1 stars 325 forks source link

Numerical Approximation_Numerical integration #310

Open sridhar1ga opened 5 years ago

sridhar1ga commented 5 years ago

Defect description : value of cos function is not evaluating correctly according to the value of iterator

Steps to reproduce the issue : http://cse02-iiith.vlabs.ac.in/exp1/simulation/index.html Expected result : The value of iterator must be made (i-1) in the graph visualization in order to obtain the value of sum of cosine values in the graph visualization Actual result : The sum in the graphical visualization part is being evaluating cosine of ((2pi)(i-1))/13 i.e, sum is 0.89 = cos((2pi)/13) it should evaluate cos((4pi)/13)

Screenshot (7)

sridhar1ga commented 5 years ago

issue resolved

commit id : # 69cd88d

DevikaBoddu commented 5 years ago

Valid fix: @sridhar2k1