diff --git a/test/ver1.4/declare.h b/test/ver1.4/declare.h index 67eda93..7b60d34 100644 --- a/test/ver1.4/declare.h +++ b/test/ver1.4/declare.h @@ -4,8 +4,8 @@ extern short method, *mth, sig_flag; // Декларирование глобальных переменных, // как внешних для последующего использования их во всей программе. #define H 0.000001 -#define A -10000 -#define B 10000 +#define A 0 +#define B 100000000 #define EPS 0.001 double f(double x); diff --git a/test/ver1.4/functions.c b/test/ver1.4/functions.c index 46ee0ff..f3177b3 100644 --- a/test/ver1.4/functions.c +++ b/test/ver1.4/functions.c @@ -10,7 +10,7 @@ double f(double x) // Функция, заданная пользователем, для которой происходит поиск корней. { - return x - 125; + return x - x * x + 1349; } void show_grapgh() @@ -22,7 +22,7 @@ void show_grapgh() new_term.c_lflag &= ~(ECHO | ICANON); tcsetattr(STDIN_FILENO, TCSANOW, &new_term); - char func[100] = "x - 125"; + char func[100] = "x - x * x + 1349"; // Подключение GNU Plot FILE *gp = popen("gnuplot -persist", "w"); diff --git a/test/ver1.4/out/function_zeros_calculator b/test/ver1.4/out/function_zeros_calculator index cd5b92d..f06347b 100755 Binary files a/test/ver1.4/out/function_zeros_calculator and b/test/ver1.4/out/function_zeros_calculator differ