Change Task 2

This commit is contained in:
AZEN-SGG 2025-05-02 03:57:38 +03:00
parent abe10d6036
commit 4d61d7f22a
2 changed files with 15 additions and 5 deletions

View file

@ -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)