Change Task 2
This commit is contained in:
parent
abe10d6036
commit
4d61d7f22a
2 changed files with 15 additions and 5 deletions
|
@ -16,7 +16,7 @@ int t2_solve (
|
|||
double y = f(x_0);
|
||||
double dy = d(x_0);
|
||||
|
||||
if (y - eps < DBL_EPSILON)
|
||||
if (fabs(y) - eps < DBL_EPSILON)
|
||||
break;
|
||||
|
||||
if (fabs(dy) < DBL_EPSILON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue