Find an Error

This commit is contained in:
AZEN-SGG 2025-05-22 21:43:13 +03:00
parent 093280d5cd
commit dc3c871ae1
6 changed files with 43 additions and 37 deletions

View file

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