change Makefile
This commit is contained in:
parent
6ffe18f36a
commit
c1e5e5fb19
4 changed files with 198 additions and 91 deletions
|
@ -52,43 +52,3 @@ int t8_solve (
|
|||
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
for (double h = (b - a) * 0.1; fabs(h) > DBL_EPSILON; h *= -0.1)
|
||||
{
|
||||
do {
|
||||
if (it > m)
|
||||
break;
|
||||
|
||||
it++;
|
||||
x_l = c;
|
||||
y_l = y;
|
||||
|
||||
c += h;
|
||||
y = f(c);
|
||||
} while (((y - y_l) - eps) > DBL_EPSILON);
|
||||
|
||||
if (it > m)
|
||||
{
|
||||
it = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
if ((c - b) > DBL_EPSILON)
|
||||
{
|
||||
x_l = b;
|
||||
y_l = f(b);
|
||||
break;
|
||||
} else if ((a - c) > DBL_EPSILON)
|
||||
{
|
||||
x_l = a;
|
||||
y_l = f(b);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
*x = x_l;
|
||||
|
||||
return it;
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue