In trying to solve 3
This commit is contained in:
parent
c4fa953d67
commit
e5b2c01295
3 changed files with 18 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue