This commit is contained in:
Oleksandr Vyshniakov 2025-02-22 14:25:14 +01:00
parent 5b0e4dfb4e
commit fca056ad0a

View File

@ -14,14 +14,15 @@ int read_number (double *num) {
return 1; return 1;
} }
double hornerovaschema (double x, double cofecients[], int count) { double hornerovaschema (double x, double cofecients[], int count) { //вычесляет значение многочлена в точке x
double result = 0.0; double result = 0.0;
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
result = result * x + coefficients[i]; result = result * x + coefficients[i];
} }
return result;
} }
int main() { int main() {
return 0; return 0;
} }