Change smth
This commit is contained in:
parent
4d61d7f22a
commit
1053f8e3c2
22 changed files with 93 additions and 297 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue