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

computer-programming-lab_numerical-integration-( area under curve )" #150

Open gayatripurigilla opened 6 years ago

gayatripurigilla commented 6 years ago

code is struck when a=-1 and b=0.printing an error message when such type of inputs are given by the user can be a solution.Screenshot_from_2018-06-05_12-36-36

VishwanathamSarika commented 6 years ago

Commit id : 19fba34784903b236ca5a146f2340636cbc63e94 It will not take negative values for a and b since Graph Visualization is shown for only positive values for exp 1 -Numerical Approximation .

VishwanathamSarika commented 6 years ago

@aakarsh7599 Please check that in the graph visualization section of experiment , number line is only for positive values i.e. for values 0 and greater than 0 . As you mentioned if in case b=0 , value of a should be negative value according to condition(b>a for experiment ) but graph visualization is not there for all negative values (try for values like a=-10 and b=-5 or for a=-15 and b=0 which will have to show incomplete or wrong graph visualization ) That is the reason the issue is fixed such that it doesn't take negative values for a and b .

aakarsh7599 commented 6 years ago

same issue #149

Rajadattu commented 6 years ago

Valid fix @VishwanathamSarika

Sumaid commented 6 years ago

Issue is the same as #149.