In trying to solve 3

This commit is contained in:
AZEN-SGG 2025-05-21 22:51:04 +03:00
parent c4fa953d67
commit e5b2c01295
3 changed files with 18 additions and 3 deletions

View file

@ -40,7 +40,7 @@ int t3_solve (
for (it = 1; it <= m; ++it)
{
c = a - ((b - a) / (y_b - y_a)) * y_a;
c = a - ((a - b) / (y_a - y_b)) * y_a;
y = f(c);
memcpy(&bits, &y, sizeof(bits));
@ -57,7 +57,7 @@ int t3_solve (
b = c;
y_b = y;
}
}
}
if (it > m)
it = -1;