Change smth

This commit is contained in:
AZEN-SGG 2025-05-02 04:20:19 +03:00
parent 4d61d7f22a
commit 1053f8e3c2
22 changed files with 93 additions and 297 deletions

View file

@ -17,7 +17,7 @@ int t7_solve (
return 1;
}
for (it = 0; it < m; ++it)
for (it = 1; it <= m; ++it)
{
x_0 = y;
y = f(x_0);
@ -25,6 +25,9 @@ int t7_solve (
if (fabs(y - x_0) - eps < DBL_EPSILON)
break;
}
if (it > m)
it = -1;
*x = x_0;