This commit is contained in:
Oleksandr Vyshniakov 2025-02-22 14:16:17 +01:00
parent acbc919f4f
commit 5b0e4dfb4e

View File

@ -8,9 +8,17 @@ int read_number (double *num) {
return 0;
}
if (sscanf(buffer, "%lf", num) ! = 1) {
if (sscanf(buffer, "%lf", num) ! = 1) { //переделываем в double. Если всё успешно
return 0;
}
return 1;
}
double hornerovaschema (double x, double cofecients[], int count) {
double result = 0.0;
for (int i = 0; i < count; i++) {
result = result * x + coefficients[i];
}
}