diff --git a/ex-2/recip.c b/ex-2/recip.c index 130d79e..5192bcd 100644 --- a/ex-2/recip.c +++ b/ex-2/recip.c @@ -21,18 +21,15 @@ double exact = 0.577215664901532860; int main(int argc, char** argv) { - - double min = (double)atof(argv[1]); - double max = (double)atof(argv[2]); - double step = (double)atof(argv[3]); + double min = 8.95; + double max = 9.04; + double step = 0.01; double prev_gamma, gamma = 0; double Z; double best = 0; - for (double z = min; z <= max; z += step) { - prev_gamma = gamma; double pro = 1;